commit c9d24c3479f64a6b34c087763461fef454655708 parent 63adae25d5c89753d3a2c812e6218fe3af0393cc Author: Michael Savage <mikejsavage@gmail.com> Date: Thu Jan 19 00:06:46 +0200 Only load one tile per frame Diffstat:
terrain_manager.cc | | | 2 | +- |
diff --git a/terrain_manager.cc b/terrain_manager.cc @@ -385,7 +385,7 @@ void terrain_render( TerrainManager * tm, const m4 & V, const m4 & P, float sun, PROFILE_FUNCTION(); ReadyTile ready_tile; - while( tm->ready_tiles.dequeue( &ready_tile ) ) { + if( tm->ready_tiles.dequeue( &ready_tile ) ) { s32 tx = ready_tile.tx; s32 ty = ready_tile.ty;