/godot-agent-skills:godot-performancefrom godot-agent-skills
Diagnoses and fixes performance problems in Godot 4.7 games: profilers, frame budgets, MultiMesh for thousands of objects, WorkerThreadPool threading, GDScript/C# hot paths, draw calls, physics cost, loading, and memory leaks.
Ships in godot-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Measure first. Never optimize blind. A budget of 16.6 ms per frame (60 FPS) or 8.3 ms (120 FPS) covers script, physics, rendering on the CPU and GPU.
Performance.get_monitor(Performance.TIME_PROCESS), RENDER_TOTAL_DRAW_CALLS_IN_FRAME, OBJECT_NODE_COUNT, OBJECT_ORPHAN_NODE_COUNT. Add your own with Performance.add_custom_monitor(&"game/enemies", callable).--profiling, --gpu-profile, --print-fps, --benchmark. Use --fixed-fps 60 --quit-after N for repeatable runs.Node.print_orphan_nodes(), get_orphan_node_ids() (4.5+).set_process(false)/set_physics_process(false) when idle. VisibleOnScreenEnabler2D/3D pauses off-screen actors. Timers beat per-frame polling.@onready/_Ready. Use StringName literals (&"jump") for actions, groups and method names. Don't call get_tree().get_nodes_in_group() every frame. Use typed GDScript (typed opcodes are faster).call_group are cheap for events, but don't emit them per entity per frame for thousands of entities.MultiMeshInstance3D/2D (one draw call; write multimesh.buffer in bulk), or GPU particles.PhysicsServer2D/3D bodies and areas without nodes, or one raycast batch per frame.RenderingServer instances and canvas items.physics_ticks_per_second at 60 unless the game needs more. Use simple primitive shapes, and avoid ConcavePolygonShape3D on moving bodies. Layers and masks cut pair checks. Let bodies sleep (can_sleep).WorkerThreadPool.add_task(callable) / add_group_task(callable, count) (parallel for), then wait_for_task_completion(id). That's better than raw Thread for most jobs.process_thread_group = PROCESS_THREAD_GROUP_SUB_THREAD, which processes that subtree in parallel and uses call_deferred_thread_group for cross-group calls). From worker threads, hand results back with call_deferred / Callable.call_deferred(). Assert with Thread.is_main_thread() (4.7).Mutex, or give each worker its own slice and merge on the main thread.ResourceLoader.load_threaded_request(path, "", true) uses sub-threads for dependencies.directional_shadow_max_distance small, and bake static lighting (LightmapGI).mesh_lod_threshold), visibility_range_*, occlusion culling, and resolution scaling (FSR, MetalFX) on weak GPUs. Pick the right renderer: Mobile or Compatibility for low-end (see godot-3d-rendering).preload loads at script load and blocks. Use it only for small things you always need. load is lazy. Threaded loading suits levels.ResourceLoader caches resources. Reuse them, and don't duplicate() shared resources unless you need per-instance state.queue_free() and pools for bullets. Watch the orphan count stay flat.new Godot.Collections.Array). Every Godot API call crosses an interop boundary, so batch them. Packed arrays copy when they cross that boundary.Mobile: < 100–150 draw calls, 1 shadowed light, Mobile or Compatibility renderer, 30–60 FPS target. Web: Compatibility renderer, single-threaded unless the export uses threads (needs cross-origin isolation headers), and keep downloads small. Desktop or console: Forward+, profile on the minimum-spec hardware.
Perf HUD + custom monitors, MultiMesh crowd, parallel group task, server-side bullets (compiled by the tests): references/patterns.md
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
godot, game-optimization, profiling, frame-budget, multimesh, worker-thread-pool
npx claudepluginhub el4cteo/godot-skills --plugin godot-agent-skills27 skills in this plugin
/godot-2d2D games in Godot 4.7 - pixel-art and HD setup, TileMapLayer (cells, terrains, custom data, runtime tiles, physics chunking), Parallax2D, Camera2D (limits, smoothing, shake), y-sort and z-index, 2D lights and normal maps, AnimatedSprite2D, one-way platforms, custom drawing, many-sprite performance. Use for platformers, top-down, tile-based or any 2D scene./godot-3d-gameplayBuilding 3D games in Godot 4.7 - third-person and orbit cameras (SpringArm3D), camera-relative movement, lock-on, top-down/RTS/isometric cameras, GridMap + MeshLibrary levels, CSG blockout and baking, modular kit import hints, Path3D rails, interactables, spawners, world-space UI, large worlds and LOD. Use for 3D player controllers, cameras or level building./godot-3d-rendering3D look in Godot 4.7 - renderer choice (Forward+/Mobile/Compatibility matrix), Environment (AgX, glow, fog, SSAO/SSR/SDFGI), lights incl. AreaLight3D, GI (SDFGI, VoxelGI, LightmapGI), HDR output, materials, glTF/Blender import suffixes, LOD and occlusion culling. Use for 3D scenes, lighting, materials, model import or visual quality./godot-addonsFinding, vetting, installing and maintaining Godot 4.7 addons - the in-editor Asset Store, editor plugins vs GDExtensions vs C# addons, compatibility and platform-binary checks, enabling plugins, versioning addons in git, optional dependencies, and a curated 4.7 list (LimboAI, Beehave, Dialogue Manager, Phantom Camera, Terrain3D, GodotSteam, billing, Mod Loader). Use when adding or fixing plugins./godot-animationAnimation in Godot 4.7 - AnimationPlayer and libraries, AnimationTree (state machines, blend spaces with sync_mode, one-shots, conditions), root motion, method/audio tracks, Tween recipes incl. tween_await (4.7), skeletons, the 4.6 IK framework (TwoBoneIK3D, FABRIK3D, CCDIK3D, SplineIK3D), LookAt/bone constraints, procedural animation. Use for character animation, cutscenes, UI motion or IK./godot-architectureStructure Godot 4.7 projects that scale - feature-based folders, scene composition and components, when to use autoloads, event bus, custom Resources as data, state machines, scene switching and loading screens, save/load (safe formats), groups and dependency injection, mixed GDScript + C# projects. Use when starting a project, adding a system, or refactoring Godot code.Other plugins' skills for the same job