comment work
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
This commit is contained in:
parent
c80c8e5b71
commit
40e9b1cba4
@ -16,13 +16,24 @@ import io.github.studiorailgun.HashUtils;
|
|||||||
*/
|
*/
|
||||||
public class ClientTerrainCache {
|
public class ClientTerrainCache {
|
||||||
|
|
||||||
//cache capacity
|
/**
|
||||||
|
* Cache capacity
|
||||||
|
*/
|
||||||
int cacheSize;
|
int cacheSize;
|
||||||
//the map of chunk key -> chunk data
|
|
||||||
|
/**
|
||||||
|
* The map of chunk key -> chunk data
|
||||||
|
*/
|
||||||
Map<Long,ChunkData> cacheMap = new ConcurrentHashMap<Long,ChunkData>();
|
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>();
|
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>();
|
Map<ChunkData,Vector3i> chunkPositionMap = new ConcurrentHashMap<ChunkData,Vector3i>();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user