Instalar Plugin De Asistencia En Moodle

I have tried a few options, like calling the engine._renderFrame() scene.render() functions at end of the
mesh generation. It did not help.
I have the feeling my pointer move events are fired so fast, that the render loop is not continuing. So I increase the render time of a frame by my movement.
One option that I tried, is tracking the frameId. So I only call mesh generation, if the frameId is different from the last one - so one generation per frame. But this is not working properly, when I release the pointer. It is stuck on the last frame.
The other work around is a combination with setTimeout. But this feels like a hack.