Replies: 2 comments 3 replies
-
Can you try Win32RenderingMode.DirectComposition? It will likely have the same issues, but could show different numbers still. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the tip @maxkatz6. I am still wondering about the BeginDraw part. Why does it make a difference if I constrain the area here (the first RECT argument)? I saw some examples (UWP one) where they also pass null (no constraint). Is it possible there is some other part down the pipeline where this constrain is missing and we are updating more than necessary? I saw a couple of .Clear() commands that might touch more pixels than necessary. |
Beta Was this translation helpful? Give feedback.
-
I notice weird behavior on Windows. GPU usage is high (~30% on my machine - split 1:1 between app and DWM) even if nothing is rendered. It seems even rendering nothing causes big GPU usage. I found three places where things may get improvemed
Avalonia/src/Windows/Avalonia.Win32/WinRT/Composition/WinUiCompositedWindowSurface.cs
Line 146 in da523ff
Avalonia/src/Windows/Avalonia.Win32/WinRT/Composition/WinUiCompositedWindowSurface.cs
Line 86 in da523ff
Does anybody have any advice?
Beta Was this translation helpful? Give feedback.
All reactions