summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2016-12-18 02:32:48 +0000
committerparamat <mat.gregory@virginmedia.com>2016-12-18 02:34:34 +0000
commit977f5b831c0af654420b4cdad95f27851f4a83ce (patch)
tree365969a63a39b096ef18de781bd0680eadda97bf /init.lua
parente8137cdc1796a611a3561a911a982e50401db226 (diff)
Use voxelmanip data buffer memory use optimisationHEADorigin/masterorigin/HEADmaster
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 00b2766..ce6706e 100644
--- a/init.lua
+++ b/init.lua
@@ -160,6 +160,11 @@ local nbuf_pathd
local nbuf_column
+-- Localise data buffer
+
+local dbuf
+
+
-- On generated function
minetest.register_on_generated(function(minp, maxp, seed)
@@ -201,7 +206,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
local vm, emin, emax = minetest.get_mapgen_object("voxelmanip")
local area = VoxelArea:new({MinEdge = emin, MaxEdge = emax})
- local data = vm:get_data()
+ local data = vm:get_data(dbuf)
local ni = 1
for z = z0 - 3, z1 + 2 do