本文へスキップ
Skillpedia
WebサイトとUI(フロントエンド)7.2k · #13366

optimize-threejs-games

できること

このスキルは、3Dブラウザゲームの速度を測って改善する作業を、AIエージェントに案内します。一部の端末で、ゲームがかくついたり遅く動いたりする開発者向けです。

使う場面

  • ✓3Dブラウザゲームが、プレイ中に遅くなったりかくついたりするとき。
  • ✓スマートフォンや古いパソコンで、ゲームの動きが悪いとき。
  • ✓変更の前後で、ゲームの速度を確認したいとき。

スキルのリンク

https://github.com/MengTo/Skills/blob/main/agent-skills/game-development/optimize-threejs-games/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/MengTo/Skills/blob/main/agent-skills/game-development/optimize-threejs-games/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私の3Dブラウザゲームは、大きな戦闘中にフレームが落ちます。原因を見つけて、安全に直してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、まずフレーム時間や描画呼び出し数を含め、同じテストシーンを測ります。そのあと、オブジェクトの再利用や効果の制限など、リスクの低い修正を行い、ゲームが正しく動くかを確認します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Optimize Three.js Games

Measure before changing behavior, then validate the same gameplay path after every optimization.

Establish a repeatable scene

Choose a deterministic representative encounter and record device, viewport, quality level, player position, enemies, active effects, frame-time sample, draw calls, triangles, texture count, and warnings. Compare like with like.

Diagnose the limiting side

  • Suspect CPU when simulation, allocations, React work, pathfinding, or per-frame scans grow with actors.
  • Suspect GPU when resolution, overdraw, shadows, transparent particles, post-processing, draw calls, geometry, or texture bandwidth dominate.
  • Inspect before optimizing; do not lower quality blindly.

Apply low-risk fixes first

Reuse geometry/materials, pool transient effects, cull inactive/offscreen work, throttle noncritical UI updates, cap particle counts, avoid per-frame allocation, and update only changed transforms. Keep render quality settings explicit and reversible. Degrade decorative effects before combat readability or controls.

Guard the result

Re-run the original encounter and verify frame time, visual correctness, collision/contact behavior, memory stability, mobile controls, reduced motion, and console health. Close temporary servers, benchmarks, and browser tabs once they are no longer needed.

よくある質問

修正でゲームの見た目が悪くなりませんか?

装飾的な効果を先に減らし、戦闘の読みやすさと操作はそのままにするとスキルで述べています。

スマートフォンでも試しますか?

はい。モバイルの操作、メモリの使用量、動きの軽減の確認を含みます。

なぜ変更の前に測るのですか?

推測で直すと、本当の原因を直さずに品質を下げることがあるので、エージェントはまず原因を調べるとスキルで述べています。

詳細

作者による元の説明

Profile, diagnose, and improve Three.js or WebGL game performance without regressing gameplay. Use for frame-time drops, CPU/GPU pressure, draw calls, texture and geometry budgets, animation loops, adaptive quality, mobile performance, and browser performance verification.

repo: MengTo/Skills

人気

GitHubのスター
7.2k
ランキング
#13366
ライセンス
MIT
更新日
2026/11/1

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル