Video summary

When Your Game Is Bad But Your Optimisation Is Genius

Main summary

Key takeaways

Technology

Terrain Rendering Optimizations

The video demonstrates three ways to optimize terrain rendering in a game-engine scene that initially runs at about 50 FPS.

1. Reduce Mesh Data and Vertex Work

Terrain meshes initially store position, normal, and UV data for every vertex, consuming about 192 MB across the scene. The creator reduces this data and the amount of vertex work by:

  • Deriving texture coordinates from position instead of storing UV coordinates.
  • Generating repeated X/Z positions in the vertex shader using gl_VertexID.
  • Compressing normals from 3D vectors into two 16-bit angle values.
  • Using triangle strips instead of individual triangles.

Together, these changes reduce scene mesh data to about 20 MB and raise performance from 50 to 400 FPS. The video attributes the improvement to reduced memory-bandwidth demand and fewer vertex-shader executions.

2. Batch Draw Calls

Instead of asking the GPU to draw each mesh separately, the game sends a list of meshes and their positions in one batch. A shader storage buffer holds the positions, and gl_DrawID selects the appropriate one.

An ice-cream-shop analogy illustrates the difference between making many individual requests and submitting one list.

Batching does not increase FPS in the test because the GPU remains the bottleneck. It does reduce the CPU time spent issuing draw commands, leaving the CPU available for other work.

3. Use Levels of Detail for Distant Terrain

Distant terrain can use larger, lower-detail meshes because the player is less likely to notice the reduced detail. Repeating this across four levels allows the terrain to cover roughly a kilometer using about 160,000 triangles, compared with 8.3 million for a single-level approach.

Overlapping levels can hide nearby, higher-quality terrain. Rather than relying on costly transparency, the creator sinks terrain near the player: new high-detail terrain is generated underground and rises into view as the player moves. Meshes fully underground are skipped, and foliage can help disguise where new terrain emerges.

The resulting scene renders 16,000 times more terrain at five times the FPS of the original setup. A direct FPS comparison with the previous approach was not possible because the larger scene exceeded available memory.

Guides and Related Material

  • The video is a practical terrain-optimization walkthrough covering mesh data, triangle strips, draw-call batching, and terrain LOD.
  • It refers to an earlier plant-generation video for additional vertex-shader detail.
  • It points to a separate foliage-rendering video for covering terrain transitions.

Main Speaker and Source

Vercidium is the video’s narrator and creator, presenting techniques from work on a game engine.

Rate this summary

Your feedback will help improve summaries.

Improve this summary

Reprocess with a stronger model when the summary feels incomplete or inaccurate.

Pro

Translate summary in another language

Pro

Ask questions to this video

Chat for follow-up questions, clarifications, and source-backed answers.

Coming soon

Share this summary

Original video