A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
fix(bench): the transform pass is measured by moving what makes it stale
esengine886d9b95f500
diff --git a/sdk/benchmarks/render-path.bench.ts b/sdk/benchmarks/render-path.bench.tsindex 430b73d38..21a5644a8 100644--- a/sdk/benchmarks/render-path.bench.ts+++ b/sdk/benchmarks/render-path.bench.ts@@ -69,9 +69,12 @@ function chainedWorld(count: number, depth: number): any {return reg;}-/** One frame of the pass: begin clears the once-per-frame latch, then it runs. */+/** One composition of the pass. The epoch is the word a producer of a local+ * transform moves; without moving it `ensureComposed` is a compare that returns,+ * and this measures the short circuit rather than the walk. Re-read every call:+ * a heap that grew detaches the view. */function frame(reg: any): void {- module.renderer_beginFrame(0);+ module.HEAPU32[module.transform_epochAddress() >> 2]++;module.renderer_updateTransforms(reg);}