Chunk: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Changed links going to the redirect Tick to go to Game-tick.) |
||
Line 4: | Line 4: | ||
Chunks are used for: | Chunks are used for: | ||
* Map generation. When the player runs around and reveals the map or the radar explores the map, it is revealed in chunks. | * Map generation. When the player runs around and reveals the map or the radar explores the map, it is revealed in chunks. | ||
* Chunks are "switched off" to save CPU cycles. If nothing important happens in a chunk (e.g. there are only fishes swimming around in the chunk) the chunk is not computed in the next [[ | * Chunks are "switched off" to save CPU cycles. If nothing important happens in a chunk (e.g. there are only fishes swimming around in the chunk) the chunk is not computed in the next [[]]. | ||
* The [[pollution]] model is based on chunks, and pollution spreads to neighboring chunks. | * The [[pollution]] model is based on chunks, and pollution spreads to neighboring chunks. | ||
Revision as of 13:07, 5 September 2017
A Chunk is a unit defined as either an area of the map 32x32 tiles in size (containing 1024 tiles in total) or a distance of 32 tiles.
Chunks are used for:
- Map generation. When the player runs around and reveals the map or the radar explores the map, it is revealed in chunks.
- Chunks are "switched off" to save CPU cycles. If nothing important happens in a chunk (e.g. there are only fishes swimming around in the chunk) the chunk is not computed in the next [[]].
- The pollution model is based on chunks, and pollution spreads to neighboring chunks.