majidmanzarpour/threejs-game-skills

threejs-debug-profiler

Debug and profile Three.js browser games: blank canvases, render and runtime bugs, asset and audio loading, animation, resize, mobile input, plus performance profiling of draw calls, triangles, textures, memory, shader and post-processing cost, and bundle s…

Voir la source
Document Skill original

Rendu depuis le dépôt source en conservant titres, exemples, code, tableaux, liens et images.

Three.js Debug Profiler

Find root causes and optimize measured bottlenecks without breaking playability.

Follow the changed behavior's scope. Reuse the lead's existing reproduction and evidence; verify the affected path after a fix. A passing focused check only needs broader testing when shared behavior changed or an unresolved risk warrants it. Return measurements and defects to the lead for the consolidated verification pass.

Reference

references/debug-playbook.md — ordered triage for blank canvas, asset and audio loading, loop/animation/physics, input and mobile, the profiling sequence, and the __THREE_GAME_DIAGNOSTICS__ shape. Read it when debugging or profiling anything non-obvious.

Debug

  1. Reproduce locally with the same command and URL the user had.
  2. Read console, page, and network errors.
  3. Check canvas display size against drawing-buffer size.
  4. Check renderer, context, and loop ownership — more than one active loop is a common cause.
  5. Check camera aspect, near/far, lights, materials, fog, scene contents, transforms.
  6. Check asset paths, loaders, CORS, and base path.
  7. Check animation delta units, physics update order and fixed timestep, collider and body ownership, input listeners, pointer and touch behavior, resize, and audio context unlock when audio is involved.
  8. Fix the root cause in the module that owns it, then retest the exact broken path.

Profile

  1. Reproduce in the correct build mode — production preview when user-facing performance matters.
  2. Baseline the scenario: FPS and frame time, draw calls, triangles, geometries, textures, memory, bundle.
  3. Classify the bottleneck as CPU, GPU draw, GPU fragment, GPU vertex, memory, or network.
  4. Change one thing — instancing, shared resources, culling, LOD, DPR cap, cheaper shadows or post, texture discipline.
  5. Re-measure the same scenario and confirm visuals and playability held.

Report

Lead with the root cause or the measured bottleneck. Then files changed, baseline and post metrics, commands, screenshots, the broken path retested, and residual risks.

du même dépôt

Autres Skills

Tous les Skills
majidmanzarpour
Communauté

threejs-3d-generator

Generate, texture, rig, animate, stylize, convert, and download 3D assets for Three.js games via the Tripo API. Use for text-to-3D, image-to-3D, game-ready GLB/FBX, characters, creatures, buildings, props, weapons, terrain, auto-rigging, animation retargeting, model texturing, voxel/LEGO stylization, and low-poly conversion. Pair with threejs-image-generator for concept and texture references first.

installations
5
GitHub Stars
1,8 k
Mis à jour
5 sept.
majidmanzarpour
Communauté

threejs-aaa-graphics-builder

Upgrade Three.js games from prototype visuals to premium browser graphics: art-direction critique, procedural model building, material and texture libraries, world prop kits, shaders, VFX, lighting and render pipeline, LOD and instancing, render budgets, and a 10-category visual scorecard. Use when screenshots still look basic or the user asks for premium, AAA, high-fidelity, showcase, or less-basic graphics.

installations
5
GitHub Stars
1,8 k
Mis à jour
5 sept.
majidmanzarpour
Communauté

threejs-audio-generator

Generate, convert, clean, and integrate audio for Three.js browser games with ElevenLabs: sound effects, looping ambience, UI sounds, impact/weapon/vehicle audio, creature and boss stingers, announcer and dialogue TTS, voice conversion from a scratch performance, voice cleanup, audio manifests, and Web Audio integration.

installations
5
GitHub Stars
1,8 k
Mis à jour
5 sept.
majidmanzarpour
Communauté

threejs-game-director

Entrypoint for building, upgrading, and finishing Three.js browser games. Routes work across the sibling threejs- skills for gameplay, graphics, UI, 3D/image/audio asset generation, debugging, and release. Use for build-a-game, upgrade, polish, premium, AAA, high-fidelity, showcase, from-scratch, endless runner, arcade, action, and release-ready requests.

installations
5
GitHub Stars
1,8 k
Mis à jour
5 sept.