You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If the current GL context is a proxied regular WebGL context, and was initialized with implicit swap mode on the main thread, and we are on the parent thread,
warnOnce('Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!');
@@ -455,19 +455,9 @@ LibraryJSEventLoop = {
455
455
456
456
MainLoop.runIter(iterFunc);
457
457
458
-
#if STACK_OVERFLOW_CHECK
459
-
checkStackCookie();
460
-
#endif
461
-
462
458
// catch pauses from the main loop itself
463
459
if(!checkIsRunning())return;
464
460
465
-
// Queue new audio data. This is important to be right after the main loop invocation, so that we will immediately be able
466
-
// to queue the newest produced audio samples.
467
-
// TODO: Consider adding pre- and post- rAF callbacks so that GL.newRenderingFrameStarted() and SDL.audio.queueNewAudioData()
468
-
// do not need to be hardcoded into this function, but can be more generic.
// In this scenario, the pthread does not hold a high-level JS object to the GL context, because it lives on the main thread, in which case we record
197
210
// an integer pointer as a token value to represent the GL context activation from another thread. (when this function is called, the main browser thread
198
211
// has already accepted the GL context activation for our pthread, so that side is good)
0 commit comments