This GUI library I'm porting has a status of whether it wants to draw 
continuously, or wants to just notify the system to do a single draw after 
a change.  (a User form GUI doesn't change that often)

There used to be a function  emscripten_request_animation_frame  But that 
doesn't seem to exist in headers anymore.... 

So the only way I can seem to get the desired behavior is to use 
pause_main_loop() and resume_main_loop().  I issue pause_main_loop 
basically every time a draw happens, but I noticed in profiling that 
animationloop is still being dispatched, just gets an early return in the 
emscripten handler I suppose....

I would have gotten rid of the main_loop entirely, and instead just call 
requestAnimationFrame myself; but like I said there's no request function 
in current include/emscripten/* headers.

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/ac8f1293-1ea3-4c7d-9023-b65c6e25770e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to