We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c6085d commit d37d13fCopy full SHA for d37d13f
1 file changed
dm_control/viewer/gui/glfw_gui.py
@@ -283,12 +283,7 @@ def event_loop(self, tick_func):
283
tick_func: A callable, function to call every frame.
284
"""
285
while not glfw.window_should_close(self._context.window):
286
- pixels = tick_func()
287
- with self._context.make_current() as ctx:
288
- ctx.call(
289
- self._update_gui_on_render_thread, self._context.window, pixels)
290
- self._mouse.process_events()
291
- self._keyboard.process_events()
+ self.update(tick_func)
292
293
def update(self, render_func):
294
"""Updates the window and renders a new image.
0 commit comments