mirror of
https://github.com/mt-mods/biome_lib.git
synced 2025-01-08 09:00:31 +01:00
change the queue ratio config setting
to avoid breaking old configs also increase the default amount of work done per tick.
This commit is contained in:
parent
d6cba18844
commit
f165434a84
6
init.lua
6
init.lua
@ -72,8 +72,8 @@ biome_lib.default_grow_nodes = c5 and tableize(c5) or {"default:dirt_with_gras
|
|||||||
|
|
||||||
biome_lib.debug_log_level = tonumber(minetest.settings:get("biome_lib_debug_log_level")) or 0
|
biome_lib.debug_log_level = tonumber(minetest.settings:get("biome_lib_debug_log_level")) or 0
|
||||||
|
|
||||||
local rr = tonumber(minetest.settings:get("biome_lib_queue_run_ratio")) or -100
|
local rr = tonumber(minetest.settings:get("biome_lib_queue_ratio")) or -200
|
||||||
biome_lib.queue_run_ratio = 100 - rr
|
biome_lib.queue_ratio = 100 - rr
|
||||||
biome_lib.entries_per_step = math.max(-rr, 1)
|
biome_lib.entries_per_step = math.max(-rr, 1)
|
||||||
|
|
||||||
-- the timer that manages the block timeout is in microseconds, but the timer
|
-- the timer that manages the block timeout is in microseconds, but the timer
|
||||||
@ -559,7 +559,7 @@ end
|
|||||||
minetest.register_globalstep(function(dtime)
|
minetest.register_globalstep(function(dtime)
|
||||||
if not biome_lib.block_log[1] then return end -- the block log is empty
|
if not biome_lib.block_log[1] then return end -- the block log is empty
|
||||||
|
|
||||||
if math.random(100) > biome_lib.queue_run_ratio then return end
|
if math.random(100) > biome_lib.queue_ratio then return end
|
||||||
for s = 1, biome_lib.entries_per_step do
|
for s = 1, biome_lib.entries_per_step do
|
||||||
biome_lib.generate_block()
|
biome_lib.generate_block()
|
||||||
end
|
end
|
||||||
|
@ -28,7 +28,7 @@ biome_lib_default_ground_nodes (List of default root nodes) string default:dirt_
|
|||||||
# that many actions are executed on every single tick, skipping none.
|
# that many actions are executed on every single tick, skipping none.
|
||||||
# More negative means more throughput, at the expense of lag. On fast PC's,
|
# More negative means more throughput, at the expense of lag. On fast PC's,
|
||||||
# a setting of between -500 and -2000 might be good.
|
# a setting of between -500 and -2000 might be good.
|
||||||
biome_lib_queue_run_ratio (Queue run ratio) int -100
|
biome_lib_queue_ratio (Queue run ratio) int -200
|
||||||
|
|
||||||
# Minetest's map generator allows neighboring areas to overflow into one
|
# Minetest's map generator allows neighboring areas to overflow into one
|
||||||
# another, to create smooth terrain, but it often hands the map blocks that
|
# another, to create smooth terrain, but it often hands the map blocks that
|
||||||
|
Loading…
Reference in New Issue
Block a user