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: revert ptr-based has check, embind has is faster for sparse set
esengine9c71d6699297
diff --git a/sdk/src/world.ts b/sdk/src/world.tsindex c15a31b29..81ccb4af3 100644--- a/sdk/src/world.ts+++ b/sdk/src/world.ts@@ -600,12 +600,6 @@ export class World {resolveHas(component: AnyComponentDef): ((entity: Entity) => boolean) | null {if (isBuiltinComponent(component)) {if (!this.cppRegistry_) return null;-- if (this.module_) {- const ptrFn = this.resolvePtrFn_(component._cppName);- if (ptrFn) return (e: Entity) => ptrFn(e) !== 0;- }-const methods = this.getBuiltinMethods(component._cppName);return (e) => methods.has(e);}