
996.4 Online Renderer
As in all real-time rendering applications, there is an event loop that processes events
and generates drawing calls. By design, this event loop is distributed between Python and
the browser.
In the browser, we use window.requestAnimationFrame() for the WebGL event
loop. In addition, two JavaScript queues are implemented. e event queue contains the
pending user events that are yet to be sent to the Python server, while the GLIR queue con-
tains pending GLIR commands that are yet to be executed by the WebGL engine (aGLIR
interpreter written in JavaScript). Events are produced in JavaScript using standard event
callback f ...