Iterate in z,y,x order through nodes
This commit is contained in:
parent
1c390be281
commit
2a29951382
4
init.lua
4
init.lua
@ -729,9 +729,9 @@ local calculate_noise = function(pos, noise, noiseparams, options, stats_mode)
|
||||
end
|
||||
|
||||
-- Main loop (time-critical!)
|
||||
for x=0, x_max do
|
||||
for y=0, y_max do
|
||||
for z=0, z_max do
|
||||
for y=0, y_max do
|
||||
for x=0, x_max do
|
||||
-- Note: This loop has been optimized for speed, so the code
|
||||
-- might not look pretty.
|
||||
-- Be careful of the performance implications when touching this
|
||||
|
Loading…
x
Reference in New Issue
Block a user