12-04-2023, 12:08 AM
(12-03-2023, 06:26 PM)megamarc Wrote: Hi!
Sorry for the long delay.
In my development branch I use VSYNC for window creation and get correct behavior in both Firefox and Edge. I haven' tried no vsync, as the variable monitor rate feature was added in main branch and I haven't yet merged with html5 branch.
You can check my samples running in-browser here:
https://www.tilengine.org/emcc/platformer.html
https://www.tilengine.org/emcc/mode7.html
https://www.tilengine.org/emcc/barrel.html
https://www.tilengine.org/emcc/colorcycle.html
https://www.tilengine.org/emcc/shadow.html
Hi, I think this is also the correct behavior with me when vsync is enabled. However, it still runs faster than you because of my 144Hz screen, same problem before the setTargetFPS() update. I also try to bring Emscripten version for the latest version of Tilengine, but I think the code is slightly different compared to the old version.