Skip to content

Creating Complex UI in Background #16176

Answered by maxkatz6
gebodal asked this question in Q&A
Jun 30, 2024 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

Now, I know Avalonia is constrained to be mono-threaded for the UI due to hardware restrictions for some devices, so I get why I can't build high level UI components on another thread. But why can't I build PathGeometry objects? Or, alternatively, how can I build my geometry objects on a background thread so that the UI remains responsive while building this large nested structure?

You are right, that some simpler primitives like geometry is possible to be built on secondary threads in theory. It wasn't implemented in supported in Avalonia yet, as we weren't prioritizing it.
It might not be too difficult to implement at this point.

If you need to build really large primitives and render…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@gebodal
Comment options

@maxkatz6
Comment options

@gebodal
Comment options

@maxkatz6
Comment options

@gebodal
Comment options

Answer selected by gebodal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants