← Todos os modelos

Grafo de cena organizado, assets comprimidos, 60 fps em celulares intermediários.

Constitution — Browser 3D game

Version 1.0.0 · Ratified 2026-11-10

These principles hold for every spec, plan and task of the game. A spec may add rules; it never weakens these.

  1. Tidy scene graph. Objects are grouped by what they are and how they move, static meshes are merged or drawn with InstancedMesh, and nothing is added to the scene without a matching removal. A level stays under its draw call budget (for example 150) in renderer.info.

  2. Compressed assets. Models ship as glTF with Draco or Meshopt geometry and KTX2 (Basis) textures, loaded through GLTFLoader with the matching decoders. No uncompressed PNG texture larger than 512 px is shipped.

  3. 60 fps on mid-range phones. The game holds 60 fps on the reference mid-range phone named in the plan, measured over a scripted play session. A change that drops the median below that or adds long frames over 33 ms is not merged.

  4. Everything created is disposed. Geometries, materials, textures and render targets are disposed when their level or object goes away. renderer.info.memory returns to its baseline after loading and leaving a level.

  5. Fast first play. The first playable scene loads in under 5 seconds on a 4G connection; the rest streams in after. The initial JavaScript bundle and first-level assets stay within the size budget in the plan.

  6. Input and audio work everywhere. The game plays with touch, keyboard and mouse, and gamepad, and audio starts only after the first user gesture as browsers require. Losing the WebGL context shows a message and recovers instead of a black canvas.