QGIS icon indicating copy to clipboard operation
QGIS copied to clipboard

Fix non-responsive Qt3D overlay

Open mkrus opened this issue 10 months ago • 0 comments

Description

Qt3D overlay is drawn using imgui which is imperative, so Qt3D needs to cache events until they are needed for the actual rendering of the overlay, especially since this happens in a different thread.

When render policy is set to OnDemand though, Qt3D does not cache the entire history of events since the previous update and events can go missing or come out of sequence, which confuses imgui.

This patch changes the render policy to Always while the overlay is visible, so it now responds to events. It will also provide more accurate display of performance data in that mode.

mkrus avatar Apr 26 '24 10:04 mkrus