mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-10-03 12:18:13 +03:00
11 lines
305 B
JavaScript
11 lines
305 B
JavaScript
mergeInto(LibraryManager.library, {
|
|
wait_vsync: function() {
|
|
EmterpreterAsync.handle(function(resume) {
|
|
window.requestAnimationFrame(function() {
|
|
if (ABORT) return; // do this manually; we can't call into Browser.safeSetTimeout, because that is paused/resumed!
|
|
resume();
|
|
});
|
|
});
|
|
}
|
|
});
|