Page 1 of 1

Map limits

PostPosted: Mon Jan 21, 2013 01:03
by keneticquartz
Why is the map limit not 31000, but 30927??? Searching through the code brought nothing that would suggest this (in fact, the opposite), unless there is somthing I missed.

The great mystery...

PostPosted: Mon Jan 21, 2013 06:57
by LorenzoVulcan
I think it's for pairing chunk dimension,for not make 1/3 or 1/4 of chunk spawning.

PostPosted: Mon Jan 21, 2013 07:45
by Calinou
It used to be ±30976 -- since the new map generation was introduced (march 2012), it is ±30912. The theorical map limit is 32768, but it was intentionally reduced to prevent crashes related to high view distances (as far as I know).

PostPosted: Mon Jan 21, 2013 10:05
by celeron55
Calinou wrote:It used to be ±30976 -- since the new map generation was introduced (march 2012), it is ±30912. The theorical map limit is 32768, but it was intentionally reduced to prevent crashes related to high view distances (as far as I know).


It is limited in order to not have to implement performance-eating and bug-prone boundary checks in lighting code and other algorithms.

PostPosted: Mon Jan 21, 2013 18:50
by 0gb.us
Calinou wrote:It used to be ±30976 -- since the new map generation was introduced (march 2012), it is ±30912. The theorical map limit is 32768, but it was intentionally reduced to prevent crashes related to high view distances (as far as I know).


It's not ±30912. It's +30927 to -30912. The high and low boundaries do not match. That keeps the map divisible into a number of whole chunks though.