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
128 stars 31 forks source link

Fix uninitialised delegated Nodes #691

Closed skalarproduktraum closed 4 months ago

skalarproduktraum commented 4 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.