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
Copy file name to clipboardExpand all lines: src/lib/libsdl.js
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1743,17 +1743,17 @@ var LibrarySDL = {
1743
1743
// We actually do the whole screen in Unlock...
1744
1744
},
1745
1745
1746
-
#if !ASYNCIFY
1746
+
#if ASYNCIFY
1747
+
SDL_Delay__deps: ['emscripten_sleep'],
1748
+
SDL_Delay__async: true,
1749
+
SDL_Delay: (delay)=>_emscripten_sleep(delay),
1750
+
#else
1747
1751
SDL_Delay: (delay)=>{
1748
1752
if(!ENVIRONMENT_IS_WORKER)abort('SDL_Delay called on the main thread! Potential infinite loop, quitting. (consider building with async support like ASYNCIFY)');
1749
1753
// horrible busy-wait, but in a worker it at least does not block rendering
0 commit comments