Huge render delay compared to WPF, with moveable controls #18540
AngryCarrot789
started this conversation in
General
Replies: 2 comments 3 replies
-
Avalonia rendering is much slower in debug mode, you need to run release mode. |
Beta Was this translation helpful? Give feedback.
3 replies
-
This is fully discussed in this thread |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I ported a few apps over to avalonia but I noticed that there was a huge increase in lag with moveable controls that make it uncomfortable to use. I'm not sure if it's UI input lag or a long render delay that avalonia has.
I made a repo and video to show the differences:
Untitledvid.mp4
https://github.com/AngryCarrot789/TestRenderLagAvWpf
In the WPF example, the cursor is almost always inside the rectangle since it's redrawing so quickly. But with the Avalonia example, maybe the input processing is slower or rendering is slower, because the rectangle is lagging far behind the cursor
Anyone know if there's a way to overcome this? I'm even following other people's recommendations using
AngleEgl
rendering mode andLowLatencyDxgiSwapChain
composition mode, and you'll see in the git repo I'm using aCompositionCustomVisualHandler
to draw the orange rectangle directly on the render thread (and the actual control hosting it is drawing yellow so the custom visual handler has made no difference)Beta Was this translation helpful? Give feedback.
All reactions