Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

Commit

Permalink
Use voxelmanip data buffer memory use optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
paramat committed Dec 18, 2016
1 parent e8137cd commit 977f5b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pathv7 0.1.4 by paramat
For Minetest 0.4.14 and later
pathv7 0.1.5 by paramat
For Minetest 0.4.13 and later
Depends default stairs
Licenses: Code LGPLv2.1, textures CC BY-SA 3.0
See license.txt for license information
Expand Down
7 changes: 6 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 977f5b8

Please sign in to comment.