Talk:Modding: Fog of War

From Noita Wiki
Jump to navigation Jump to search

Ddffrr (talk) 05:58, 11 April 2023 (UTC)Why fog of war disappears when travel parrel worlds?

DexterCD (talk) 00:40, 12 April 2023 (UTC) FoW is stored in a 4096x4096 byte array where every byte tracks the fog level of a 32x32 section of the world. This gives a total area of 32*4096 by 32*4096 = 131072x131072. This FoW area is centered on the world 0,0 coordinate which means you can travel 65536 pixels in any direction to reach the border of this array.
The array is never centered to a new position and as far as I can tell it's also never resized.
Here's what it looks like dumped from memory ->
Fog of War memory dump.png