[wip] added throttle so viewer doesnt crash (#411)

* added throttle so viewer doesnt crash

* fix rendering bug

* lint
This commit is contained in:
evonneng authored and GitHub committed 2022-09-12 18:32:09 -07:00
1 parent 416669d808
commit e516e668b9
1 file changed
+1
+1
View File
@@ -314,6 +314,7 @@ class VisualizerState:
# if self._is_render_step(local_step) and step > 0:
if step > 0:
self._render_image_in_viewer(camera_object, graph, is_training)
camera_object = self._get_camera_object()
is_training = self.vis["renderingState/isTraining"].read()
run_loop = not is_training
local_step += 1