BunnyMark not showing FPS info in Emscripten


Top is html5 target, bottom is wasm -emscripten
Just odd that it isn’t displaying the FPS text. Have no clue why though.

Does “AddingText” or “PiratePig” work? I thought I had fonts working, but perhaps “_sans” doesn’t work, I don’t know

AddingText shows the “Hello World” in the proper font while throwing in console:

Error in parsing value for ‘font-family’. Declaration dropped.
127.0.0.1:3000
Downloading data… (16235/118635)
127.0.0.1:3000:52:39
Downloading data… (118635/118635)
127.0.0.1:3000:52:39
Running…
127.0.0.1:3000:52:39
Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!

Pirate Pig shows all black screen and throws in the browser:

GET
http://127.0.0.1:3000/
[HTTP/1.1 200 OK 4ms]
Error in parsing value for ‘font-family’. Declaration dropped.
127.0.0.1:3000
GET
http://127.0.0.1:3000/PiratePig.js
[HTTP/1.1 200 OK 33ms]
GETXHR
http://127.0.0.1:3000/PiratePig.data
[HTTP/1.1 200 OK 6ms]
Downloading data… (131072/592116)
127.0.0.1:3000:52:39
Downloading data… (592116/592116)
127.0.0.1:3000:52:39
GETXHR
http://127.0.0.1:3000/PiratePig.wasm
[HTTP/1.1 200 OK 72ms]
Running…
127.0.0.1:3000:52:39
Error [lime.app.Preloader] ERROR: Error loading asset "sound5"
PiratePig.js:1:10146
127.0.0.1:3000:52:39
Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!

Try this: https://github.com/openfl/openfl-samples/commit/83800dd4e338d984061fd2b033d4b012fcd0ee2d

1 Like

That fixed it, PiratePig running. Thanks singmajesty.

1 Like