Video summary
Optimizing my Game so it Runs on a Potato
Main summary
Key takeaways
Summary
The developer describes six months of optimizing Bloodthief, a Godot game, using a low-cost laptop with integrated graphics as a performance benchmark. The game improved from about 9 FPS to a steady 50–60 FPS on that machine, and from under 100 FPS to over 200 FPS on the developer’s gaming PC. Playtester feedback also shifted from frequent performance complaints to mostly reporting smooth gameplay.
Main Optimizations
- Occlusion culling: Objects blocked from the player’s view are not rendered. The developer used Qodot’s map-building tools to generate occluders automatically. A Godot bug caused some visible geometry to disappear, so they modified Qodot to add a cull margin as a workaround. Occlusion culling added as much as 50 FPS in some areas.
- Baked lighting: Lighting is calculated ahead of time rather than during gameplay. This improved visual lighting while adding roughly 30–100 FPS, depending on the area. Lighting must be rebaked after level changes, and the developer uses medium quality because higher settings crash Godot.
- Enemy processing: Groups of enemies were expensive because each recalculated its navigation path every physics tick. The developer reduced this to once every 20 ticks and staggered updates with a random offset to prevent many enemies from updating simultaneously. They also disabled enemy animation trees while enemies were off-screen. In one demanding encounter, a tester’s reported performance rose from 18 FPS to at least 110 FPS.
- Shader-compilation stutter: First-time shader compilation caused severe stutters for players, even when the game ran smoothly on the developer’s machine, where the shaders were already cached. After finding ways to clear shader caches and reproduce the issue, the developer tried displaying game assets and effects during a fake loading screen, but that did not eliminate all stutters. The eventual workaround records a playthrough and replays the recorded inputs at 10× speed when a level first loads, triggering shaders and effects in advance while a loading screen hides the process. This removed the stuttering in tests, including on the benchmark laptop.
- Graphics APIs and hardware compatibility: Godot 4’s Forward+ renderer uses Vulkan, which offers modern features and performed better on the developer’s newer PC. However, older GPUs may lack Vulkan support or have poor drivers. On the benchmark laptop, OpenGL ran much faster in a simple test, while on the newer NVIDIA GPU it performed worse and broke some visual effects. The developer chose Vulkan, accepting that some older computers may not run the game.
- Other measures: The developer disabled screen-space ambient occlusion, added distance fading for objects and effects, moved level loading to another thread with a progress bar, and added a render-resolution setting to help low-end machines.
Takeaways
The video emphasizes testing on varied hardware, since good performance on a developer’s own machine may conceal first-run shader stutters or compatibility problems on players’ systems. It also notes that engine features and driver support can involve trade-offs: Vulkan can benefit modern hardware but create obstacles on older computers.
Reviews, Guides, or Tutorials
This is a development analysis and walkthrough of the optimizations. It does not review a separate product or provide a formal step-by-step tutorial.
Main Speakers and Sources
- Blargis, the developer and narrator
- Miziziziz, credited for the suggestion to disable animations for off-screen enemies
- Godot’s creator, cited regarding shader compilation requiring the relevant content to be rendered
- Digital Foundry, cited for its criticism of shader-compilation stutter
- Community posts and videos on Reddit, GitHub, and YouTube, which the developer consulted while investigating shader compilation
Rate this summary
Your feedback will help improve summaries.
Improve this summary
Reprocess with a stronger model when the summary feels incomplete or inaccurate.
Translate summary in another language
Ask questions to this video
Chat for follow-up questions, clarifications, and source-backed answers.