Lusito
Lusito
Moving that discussion to #5
Honestly, I can't say. Box2dweb has not been touched in 5 years and they started from the flash version (rather than the original), so it is probably way behind the...
Good question.. if you only want to compare the pure box2d performance, then it should be relatively easy by: - adding `liquidfun-wasm` to the dependencies of the benchmark - Creating...
If you want to compare the liquidfun parts, you'd have to first create a test setup to actually compare it and create a separate entry-point, since not all of the...
Check out https://github.com/Lusito/box2d.ts/blob/master/packages/benchmark/src/cli/index.ts to see how I fix it in the benchmarks. Out of curiousity: Are you using box2d in node.js other than for benchmarking?
Sorry for the delay. I forgot to watch this repo and did not get notified by this question. The project is not abandoned, but I didn't get to work on...
You can check how the CLI benchmark does it: https://github.com/Lusito/box2d.ts/blob/master/packages/benchmark/src/cli/index.ts ```ts import { performance } from "perf_hooks"; global.performance = performance as any; ```
Somewhere in your server-side code, add the import and the global.performance assignment. Just make sure, the assignment happens before you work with box2d. JavaScript version: ```js import { performance }...
Ah, I'm sorry. I forgot, that one timer gets created on top-level. Try this instead: Create a file "fixPerformance.js" (name it whatever you like) with the 2 code lines above,...
Hi @8Observer8, sorry for the delay, life kept me busy. What exactly do you mean by adding it to the NPM package? 1. perf_hooks is a node API and box2d.ts...