01-13-2026, 05:13 PM
Hi,
I am writing an Avalonia MDI application where it is possible to have many windows created at one time, each of which uses it's own SharpEngine view control.
I notice that after say 5 windows are opened, performance in subsequent windows degrades sharply. This is not too surprising given the amount of resources that needs to be allocated to each view
So far: I am sharing a single VulkanDevice across all renderers and have already set supersampling to 1 - the latter certainly improves performance over multiple screens but at some quality cost of course.
Given that most of these views won't actually be *visible* at the same time, I am looking forguidance on what the best strategy is for trying to reduce resource use in my scenario. I do need to be able to let the user open multiple views, but of course the total screen area (even if all are visible) will never exceed the screen dimensions. Is there a recommended way to release the heaviest GPU assets whilst views are not visible that will allow quick resumption when the user reverts to the view?
thanks!
I am writing an Avalonia MDI application where it is possible to have many windows created at one time, each of which uses it's own SharpEngine view control.
I notice that after say 5 windows are opened, performance in subsequent windows degrades sharply. This is not too surprising given the amount of resources that needs to be allocated to each view
So far: I am sharing a single VulkanDevice across all renderers and have already set supersampling to 1 - the latter certainly improves performance over multiple screens but at some quality cost of course.
Given that most of these views won't actually be *visible* at the same time, I am looking forguidance on what the best strategy is for trying to reduce resource use in my scenario. I do need to be able to let the user open multiple views, but of course the total screen area (even if all are visible) will never exceed the screen dimensions. Is there a recommended way to release the heaviest GPU assets whilst views are not visible that will allow quick resumption when the user reverts to the view?
thanks!

