game-thread-performance

Diagnose and optimize game-thread CPU bottlenecks in Unreal Engine 5 projects.

1|Updated Sep 6, 2026
Ready to run
npx skills add https://github.com/ziyarduc/Baran-bk-game --skill game-thread-performance-ziyarduc
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: game-thread-performance
Source: https://github.com/ziyarduc/Baran-bk-game/tree/main/.agents/skills/game-thread-performance
Command: npx skills add https://github.com/ziyarduc/Baran-bk-game --skill game-thread-performance-ziyarduc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Unreal Engine games often run CPU-bound on the game thread, causing low frame rates, stutter, and input lag even when the GPU is idle. This Skill explains how game-thread time drives frame rate and provides a structured workflow to find and fix tick-heavy actors, Blueprint hot paths, and per-frame overhead. ## Core Features & Use Cases - Frame Budget Mental Model: Maps target FPS (30/60/120/240/360) to per-frame millisecond budgets so you can judge whether the game thread is the limiter. - Triage Workflow: Step-by-step profiling using stat unit, stat game, DECLARE_CYCLE_STAT, SCOPE_CYCLE_COUNTER, and Unreal Insights to locate real hotspots. - Optimization Levers: Concrete techniques including disabling unnecessary ticking, caching references, moving heavy work to worker threads with AsyncTask, and reducing physics, AI, and widget overhead. - Use Case: Your Battle Royale prototype hitches when 10 bots tick simultaneously. Use this Skill to confirm the game thread dominates via stat unit, instrument the bot Tick with cycle counters, and move pathfinding updates off the per-frame path. ## Quick Start Ask the AI to analyze why your Unreal Engine 5 game is CPU-bound on the game thread and recommend which Tick-heavy actors or Blueprints to optimize first.

Frequently Asked Questions about game-thread-performance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I know if my Unreal Engine game is CPU-bound on the game thread?▼

Run stat unit and compare Game thread time against Render thread and GPU time. If the Game thread dominates the frame, the game is CPU-bound; if Render or GPU dominates, the issue is draw calls, overdraw, or post-processing.

How to reduce Tick() overhead in Unreal Engine actors?▼

Disable ticking with PrimaryActorTick.bCanEverTick = false when not needed, use timers or events for infrequent logic, and cache references in BeginPlay instead of calling GetOwner or Cast every frame. Move heavy CPU work to background threads with AsyncTask.

What is the frame budget for 120 FPS in Unreal Engine?▼

At 120 FPS the full frame budget is 8.33 ms, and at 240 FPS only 4.16 ms. If the game thread consumes 5 ms at 120 FPS, most of the budget is spent before rendering begins, so hot-path cleanup matters more at high refresh targets.

Can I move Unreal Engine actor logic to a background thread?▼

Yes, use AsyncTask, TaskGraph, or a background job for heavy CPU work, but never touch UObject or actor state from worker threads. Marshal results back to the game thread using queues or atomics to apply mutations safely.

Why does my game stutter even though average FPS looks fine?▼

Stutter comes from frame-time variance, not just low average FPS. Per-frame allocations, string building, UObject churn, and Blueprint-heavy Tick logic create spikes; instrument hot paths with DECLARE_CYCLE_STAT and SCOPE_CYCLE_COUNTER to find them.