Game developer cuts GPU frame time by 3 ms by skipping hidden trees and town on a planet

An experimental Godot 4 game called Planet Wanderer, written by AI coding agents under human direction, found that much of its frame time at the starting camp went to trees and a town hidden behind the planet's curved horizon. The far tree level of detail was set to draw up to 900 m, well beyond the horizon at a 380 m planet radius, so the GPU processed invisible geometry that the depth test then discarded. Engine occlusion culling with a sphere occluder was tested but did not match the custom horizon test the game already used for its land tiles. The developers fixed the problem by splitting far-level trees into smaller 60 m pieces and extending the horizon test to cover them. The changes cut GPU time by 3.0 to 3.5 ms across three test runs on a single laptop.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in