Closed stanoddly closed 1 year ago
I guess the reason behind that could be asyncify, see comment here: https://github.com/disketteman/DotnetRaylibWasm/issues/1#issuecomment-1329639010
With that being said I won't move forward with WindowShouldClose
anyway.
This is literally how WindowShouldClose
looks like on Web:
#if defined(PLATFORM_WEB)
// [...] COMMENTS REMOVED
emscripten_sleep(16);
return false;
#endif
https://github.com/raysan5/raylib/blob/50a716c0d91f90e73f1fe2b910b3f7426a0d1360/src/rcore.c#L1084
So there is no reason to use it to pay the performance cost of ASYNCIFY
.
When
Raylib.WindowShouldClose()
is used the script of the web page just dies withabort
. This is pretty bad since it's the core functionality of Raylib's loop.This is how it looks like: