Multithreading

Offloads CPU-heavy Godot work via WorkerThreadPool, Thread/Mutex/Semaphore, call_deferred, and threaded resource load so the main thread keeps the ~16 ms frame. Use when Godot pathfinding, procedural generation, or background loads hitch rendering. Not for Python/C++/JS threading, profiling-first optimization (godot-optimization), or mutating the live scene tree from a worker. Never skip wait_for_task_completion (slot leak) or do GPU work off the main thread.

Kayforkind d7953e6 2 files · 31.0 KB Updated

File contents

Kayforkind/skill-slice commit d7953e67bc

Frequently asked questions

npx skillmds@latest add kayforkind/multithreading