Hello everyone,
So i've done some tests and found a weird issue when using a timer and
compiling with some flags. I found this when compiling WebAssembly. Only
noticed this since i started compiling WebAssembly.
Also this problem only happen in Chrome Canary. Works on Firefox.
This is the code i've been running:
#include <emscripten/emscripten.h>
void DisplayCB()
{
printf( "emscripten_get_now(): %f\n", (double)emscripten_get_now() );
}
int main()
{
emscripten_set_main_loop( &DisplayCB, 0, 0 );
}
return values from ...now() are wrong when combining the following flags:
-s SAFE_HEAP=1
-O0
-Os
-s BINARYEN=1 -s "BINARYEN_SCRIPTS='spidermonkify.py'"
E.g.
emcc timertest.cpp -s SAFE_HEAP=1 -O0 -Os -s BINARYEN=1 -s
"BINARYEN_SCRIPTS='spidermonkify.py'" -o timertest.html --separate-asm
--
You received this message because you are subscribed to the Google Groups
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.