Map limits

keneticquartz
Member
 
Posts: 15
Joined: Tue Jan 15, 2013 02:56

Map limits

by keneticquartz » Mon Jan 21, 2013 01:03

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...
 

User avatar
LorenzoVulcan
Member
 
Posts: 437
Joined: Mon Mar 12, 2012 06:46

by LorenzoVulcan » Mon Jan 21, 2013 06:57

I think it's for pairing chunk dimension,for not make 1/3 or 1/4 of chunk spawning.
Developer of the BlockForge 2# Project!
Official thread: http://minetest.net/forum/viewtopic.php?pid=54290#p54290
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Mon Jan 21, 2013 07:45

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).
 

celeron55
Member
 
Posts: 430
Joined: Tue Apr 19, 2011 10:10

by celeron55 » Mon Jan 21, 2013 10:05

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.
 

User avatar
0gb.us
Member
 
Posts: 841
Joined: Sun Sep 16, 2012 01:55

by 0gb.us » Mon Jan 21, 2013 18:50

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.
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 18 guests