-
-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CityOnPlanet: optimize instanced rendering by up to 25%
- Precalculate instance transforms for each potentially-visible building at startup rather than every single frame. - Move all matrix multiplication out of the inner loop and do frustum culling with an optimized single-precision float frustum structure. - Pass a CameraContext rather than a Frustum to CityOnPlanet::Render for top-level frustum culling. - Add comments indicating potential future performance improvements.
- Loading branch information
Showing
3 changed files
with
78 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters