voxelImprovements #5

Merged
railgun merged 21 commits from voxelImprovements into master 2024-11-07 15:08:54 -05:00
Showing only changes of commit 40e9b1cba4 - Show all commits

View File

@ -16,13 +16,24 @@ import io.github.studiorailgun.HashUtils;
*/
public class ClientTerrainCache {
//cache capacity
/**
* Cache capacity
*/
int cacheSize;
//the map of chunk key -> chunk data
/**
* The map of chunk key -> chunk data
*/
Map<Long,ChunkData> cacheMap = new ConcurrentHashMap<Long,ChunkData>();
//the list of keys in the cache
/**
* The list of keys in the cache
*/
List<Long> cacheList = new CopyOnWriteArrayList<Long>();
//A map of chunk to its world position
/**
* A map of chunk to its world position
*/
Map<ChunkData,Vector3i> chunkPositionMap = new ConcurrentHashMap<ChunkData,Vector3i>();
/**