scenerygraphics / scenery

Flexible VR Visualisation for Volumetric and Geometric Data on the Java VM, powered by Kotlin and Vulkan.
https://scenery.graphics
GNU Lesser General Public License v3.0
131 stars 32 forks source link

Fix uninitialised delegated Nodes #691

Closed skalarproduktraum closed 9 months ago

skalarproduktraum commented 9 months ago

This PR fixes an issue where Nodes which delegate rendering (such as Volumes) would be left with initialised metadata (from the delegate), but would themselves not be marked initialised. This leads to an issue where they'd cause constant updates and defeat push mode.

To make push mode defeat issues more easily debuggable in the future, this PR also adds VulkanRenderer.pushModeDefeats, which keeps track of the reasons for the last five push mode defeats.