owl-project / NVISII

Apache License 2.0
319 stars 27 forks source link

Development #132

Open natevm opened 2 years ago

natevm commented 2 years ago

Just to keep track of changes made, I'll try posting the features I add to these pull requests.

At the moment, I'm changing the behavior of lazy updates. I'm removing lazy_updates from the initialize function, as when lazy_updates and headless are both true, we run into issues. Instead, to improve performance in some sections, users can instead call disable_updates and enable_updates between loops to generate or edit scene objects. I'm also editing that disable_updates functionality to also pause the rendering of the current scene. That way, the GPU is idle during those update sections, and the main thread of the CPU is more free to focus on collaborating with python to generate / edit objects.