Godot Performance logo

Godot Performance

Community
EL4CTEO
godot-performance

Find and fix performance problems in Godot 4.7 - profilers and monitors, frame budgets, MultiMesh and server APIs for thousands of objects, WorkerThreadPool and thread groups, GDScript/C# hot paths, draw calls, lights, LOD, physics cost, loading and memory leaks. Use when the game stutters, FPS is low, loading is slow or memory grows.

Overview

PublisherEL4CTEO
Repositorygodot-skills
Skill namegodot-performance
Stars
60
Forks
6
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by EL4CTEO on GitHub. Read the source before you install it.

Installation

Install the Godot Performance AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-performance
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/EL4CTEO/godot-skills.git /tmp/godot-skills
mkdir -p .claude/skills
cp -r /tmp/godot-skills/skills/godot-performance .claude/skills/godot-performance
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Godot Performance in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Godot Performance on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Godot Performance is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Performance (4.7)

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.

Tools

  • Editor Debugger: Profiler (script functions; start it, play, then sort by self time), Visual Profiler (CPU vs GPU per render pass), Monitors (FPS, process/physics time, objects, nodes, orphan nodes, draw calls, video memory), Network Profiler, and ObjectDB snapshots (4.6+: diff two snapshots to find leaks).
  • Code: 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).
  • Native profilers (4.6+): Tracy, Perfetto (Android default) and Apple Instruments can see GDScript, C# and GDExtension frames. Use them for frame-time spikes.
  • CLI: --profiling, --gpu-profile, --print-fps, --benchmark. Use --fixed-fps 60 --quit-after N for repeatable runs.
  • Leaks: orphan nodes are nodes removed from the tree but never freed. Node.print_orphan_nodes(), get_orphan_node_ids() (4.5+).

CPU: do less work

  • Disable processing you don't need: set_process(false)/set_physics_process(false) when idle. VisibleOnScreenEnabler2D/3D pauses off-screen actors. Timers beat per-frame polling.
  • Per-frame code is the hot path. Cache nodes in @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).
  • Signals and call_group are cheap for events, but don't emit them per entity per frame for thousands of entities.
  • Thousands of things: stop using one Node per thing.
    • Visuals: MultiMeshInstance3D/2D (one draw call; write multimesh.buffer in bulk), or GPU particles.
    • Logic: plain arrays and structs in one manager script (data-oriented), not a script per entity.
    • Physics: PhysicsServer2D/3D bodies and areas without nodes, or one raycast batch per frame.
    • Rendering without nodes: RenderingServer instances and canvas items.
  • Physics: keep 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).

Threads

  • 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.
  • Scene-tree rule: nodes inside the tree may only be touched from the main thread, unless they're in a thread group (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).
  • Shared data: guard it with Mutex, or give each worker its own slice and merge on the main thread.
  • Background loading: ResourceLoader.load_threaded_request(path, "", true) uses sub-threads for dependencies.

GPU and rendering

  • Draw calls: merge static meshes and share materials, because each unique material on a mesh surface adds calls. Use MultiMesh for repeats and texture atlases in 2D.
  • Lights and shadows are the usual GPU hogs. Use few shadowed omni and spot lights, keep directional_shadow_max_distance small, and bake static lighting (LightmapGI).
  • Overdraw: big transparent particles and full-screen alpha. Use alpha scissor or hash for foliage and smaller particle quads.
  • Scale detail: LOD (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).
  • Shader hitches: shader baker (export option), fewer material variants.

Loading and memory

  • 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.
  • Textures: VRAM-compressed import (default for 3D; enable for big 2D). Mipmaps for 3D. Limit max size per platform. Audio: Ogg streams for long tracks.
  • Free what you spawn: queue_free() and pools for bullets. Watch the orphan count stay flat.

GDScript vs C#

  • GDScript is fine for gameplay. Move tight math loops (pathfinding, procgen, simulations) to C# or GDExtension, and still batch API calls.
  • C#: avoid per-frame allocations (LINQ, closures, string formatting, new Godot.Collections.Array). Every Godot API call crosses an interop boundary, so batch them. Packed arrays copy when they cross that boundary.

Platform budgets (rule of thumb)

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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Godot Performance AI skill do?

Find and fix performance problems in Godot 4.7 - profilers and monitors, frame budgets, MultiMesh and server APIs for thousands of objects, WorkerThreadPool and thread groups, GDScript/C# hot paths, draw calls, lights, LOD, physics cost, loading and memory leaks. Use when the game stutters, FPS is low, loading is slow or memory grows.

Why use Godot Performance on TypingMind?

Because you install it once and use it with any model. Godot Performance is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Godot Performance in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-performance. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Godot Performance?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Godot Performance?

As many as you like. As long as a model supports skills, you can use Godot Performance with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Godot Performance AI skill free?

Yes. It is published on GitHub by EL4CTEO under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇