Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- World
- {
- MaxChunkUploads = Max low priority chunk uploads per update (increase for less smooth fps but faster world loading)
- RegionSize = Size of a region in blocks (chunks are loaded as regions)
- MaxAsyncChunkUpdates = Amount of chunk updates at the same time (decrease to smooth out cpu usage)
- _loadedRegions = Regions that dont need to be loaded/generated
- _queuedChunkUpdates(Hp/Lp) = Queued chunk updates high priority and low priority
- _chunksReadyToUploadHp(Hp/Lp) = Chunks that are ready to be uploaded to the gpu
- _regionsReadyToAdd = Regions that have been read from disk or generated asynchronously
- _regionsReadyToRemove = Regions that have been saved successfully and are ready to be unloaded
- QueueChunkUpdate = Adds a chunk to the update queue
- BlockRaytrace = Casts a ray to the closest block using math (the block will be able to have its own world matrix in the future)
- Unload = Saves all regions and waits until it's finished for now
- LoadChunks = Creates threads to load regions which will then be put into _regionsReadyToAdd
- UnloadChunks = Creates threads to unload regions which will then be put into _regionsReadyToRemove
- UpdateChunks = Uploads chunks that are ready to and creates new chunk update threads
- after a chunk is finished updating i will be put into its respective _chunksReadyToUpload
- }
- Chunk
- {
- InterruptUpdate = Interrupts the current update
- Update = returns false if the update has been interrupted which will then not be put into _chunksReadyToUpload
- }
- ChunkCache
- {
- this = Is used to generate chunks from another thread which will then be added to the world on the main thread
- AddToWorldAndUpdate = Adds all of its chunks to the world and updates the chunk and its neighbours
- }
- CachedChunk
- {
- this = Same as a chunk but can't be drawn
- }
- PlayerController
- {
- this = Just a wrapper for the player movement for now
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement