I do have /emscripten_request_animation_frame/ in emscripten/html5.h

I am using sdk-1.38.30-64bit


Le 27/05/2019 à 21:18, J Decker a écrit :
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] <mailto:[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 <https://groups.google.com/d/msgid/emscripten-discuss/ac8f1293-1ea3-4c7d-9023-b65c6e25770e%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
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/a15ec60c-e7c8-dd0f-c2f8-4403d6f0c653%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to