Open pedroth opened 8 months ago
Hitting pause in the debugger almost always hits slow_path_mod
. Hardcoding render to window.render(10, 10, 40, "rgba32", buffer);
and removing the contents of the for loop will improve performance significantly. I'm guessing there's a problem with jit and napi functions not allowing some operators to hit their fast path.
Any update on this?
What version of Bun is running?
1.0.28+705638470
What platform is your computer?
Linux 6.5.0-21-generic x86_64 x86_64
What steps can reproduce the bug?
If I run
node index.js
I get~60 FPS
, If I runbun index.js
I get~20 FPS
.package.json
:What is the expected behavior?
I would expect to have better performance on
bun
instead ofnode
What do you see instead?
Better performance on
node
Additional information
I can't exit the program, when using
Ctrl +C
and in node I can.