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

Remove waiting period when closing #735

Closed ctrueden closed 7 months ago

ctrueden commented 7 months ago

The gracePeriod variable only decreases in the main loop while it is looping. But the shouldClose = true causes the main loop to stop looping. So the gracePeriod only had time to decrement once (to 59), at which point the while loop here in the close() function gets stuck.

It may be the case that this looping was only necessary for the OpenGL renderer anyway, which is no longer an issue, so we can simplify now.