Difference between revisions of "Chunk"

From Official Factorio Wiki
Jump to: navigation, search
m
(Clarify description)
Line 1: Line 1:
A chunk is an area of 32x32 [[Tile]]s and so it contains 1024 tiles, and logically has the area of 1024 tiles.
+
A Chunk refers to either an area of the map 32x32 [[Tile]]s in size (containing 1024 tiles in total) ''or'' a distance of 32 [[Tile]]s.
  
It's second meaning is the length 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.
== What chunks are technically used for ==
+
* 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 [[Tick]].
 
+
* The [[pollution]] model is based on chunks, and pollution spreads to neighboring chunks.
Chunks are used for
 
* map generation. When the player runs around, he reveals the map, or the radar explores this is done in chunks, because memory needs to be allocated, map needs to be calculated etc.
 
* chunks are "switched off", to spare CPU. If nothing (important) happens in a chunk (only fishes swimming around and other rules like that) the chunk is not computed for the next [[Tick]].
 
* pollution. The pollution-model is based on chunks, the pollution spreads to the neighbors.
 

Revision as of 12:38, 13 August 2014

A Chunk refers to 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 Tick.
  • The pollution model is based on chunks, and pollution spreads to neighboring chunks.