Advertisement
Guest User

Untitled

a guest
Dec 4th, 2016
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. World
  2. {
  3. MaxChunkUploads = Max low priority chunk uploads per update (increase for less smooth fps but faster world loading)
  4. RegionSize = Size of a region in blocks (chunks are loaded as regions)
  5.  
  6. MaxAsyncChunkUpdates = Amount of chunk updates at the same time (decrease to smooth out cpu usage)
  7.  
  8. _loadedRegions = Regions that dont need to be loaded/generated
  9.  
  10. _queuedChunkUpdates(Hp/Lp) = Queued chunk updates high priority and low priority
  11. _chunksReadyToUploadHp(Hp/Lp) = Chunks that are ready to be uploaded to the gpu
  12.  
  13. _regionsReadyToAdd = Regions that have been read from disk or generated asynchronously
  14. _regionsReadyToRemove = Regions that have been saved successfully and are ready to be unloaded
  15.  
  16. QueueChunkUpdate = Adds a chunk to the update queue
  17.  
  18. BlockRaytrace = Casts a ray to the closest block using math (the block will be able to have its own world matrix in the future)
  19.  
  20. Unload = Saves all regions and waits until it's finished for now
  21.  
  22. LoadChunks = Creates threads to load regions which will then be put into _regionsReadyToAdd
  23. UnloadChunks = Creates threads to unload regions which will then be put into _regionsReadyToRemove
  24.  
  25. UpdateChunks = Uploads chunks that are ready to and creates new chunk update threads
  26. after a chunk is finished updating i will be put into its respective _chunksReadyToUpload
  27. }
  28.  
  29. Chunk
  30. {
  31. InterruptUpdate = Interrupts the current update
  32. Update = returns false if the update has been interrupted which will then not be put into _chunksReadyToUpload
  33.  
  34. }
  35.  
  36. ChunkCache
  37. {
  38. this = Is used to generate chunks from another thread which will then be added to the world on the main thread
  39.  
  40. AddToWorldAndUpdate = Adds all of its chunks to the world and updates the chunk and its neighbours
  41. }
  42.  
  43. CachedChunk
  44. {
  45. this = Same as a chunk but can't be drawn
  46. }
  47.  
  48. PlayerController
  49. {
  50. this = Just a wrapper for the player movement for now
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement