Instead of loading the world mesh at startup time (in the setup_world_mesh_data system) and storing the entire world in memory, stream in tiles as they are needed. Keep an in memory LRU cache of recently used tiles. Also consider storing mesh data in an on-disk cache.
Instead of loading the world mesh at startup time (in the
setup_world_mesh_data
system) and storing the entire world in memory, stream in tiles as they are needed. Keep an in memory LRU cache of recently used tiles. Also consider storing mesh data in an on-disk cache.