medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit bd31804516ba13d92f61d8627c193d39a3327ad8
parent 85c40ffb53dbb9c0aae0e7da15154b973fde6a6e
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun Oct 30 21:08:32 +0200

Load one tile at a time

Diffstat:
terrain_manager.cc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/terrain_manager.cc b/terrain_manager.cc @@ -392,7 +392,7 @@ void terrain_render( TerrainManager * tm, glm::mat4 V, glm::mat4 VP, float sun ) u32 state = load_acquire( &tm->tile_states[ tx ][ ty ] ); if( state == TILE_READY_FOR_UPLOAD ) { - if( inited > 2 ) continue; + if( inited > 1 ) continue; const GPUTileData & gpu_tile_data = tm->gpu_tiles[ tx ][ ty ]; // TODO: move this into terrain_prepare_render? const Heightmap * hm = &tm->decompressed_tiles[ tx ][ ty ].heightmap;