diff --git a/examples/common/entry/entry_asmjs.cpp b/examples/common/entry/entry_asmjs.cpp index 3ac5497b..5c560029 100644 --- a/examples/common/entry/entry_asmjs.cpp +++ b/examples/common/entry/entry_asmjs.cpp @@ -9,16 +9,23 @@ #include +extern "C" void entry_emscripten_yield() +{ +// emscripten_sleep(0); +} + namespace entry { const Event* poll() { + entry_emscripten_yield(); return NULL; } const Event* poll(WindowHandle _handle) { BX_UNUSED(_handle); + entry_emscripten_yield(); return NULL; }