镜像自地址
https://github.com/mt-mods/plantlife_modpack.git
已同步 2025-09-18 12:40:34 +02:00
limit plants_lib's per-step time based on dtime
(requested limit is 0.2s, but actual tends to be around 1.5s max lag spike)
这个提交包含在:
@@ -326,7 +326,7 @@ end
|
|||||||
-- a surface during the initial map read stage.
|
-- a surface during the initial map read stage.
|
||||||
|
|
||||||
function plantslib:generate_block_with_air_checking(dtime)
|
function plantslib:generate_block_with_air_checking(dtime)
|
||||||
|
if dtime > 0.2 then return end -- don't attempt to populate if lag is too high
|
||||||
if #plantslib.blocklist_aircheck > 0 then
|
if #plantslib.blocklist_aircheck > 0 then
|
||||||
|
|
||||||
local minp = plantslib.blocklist_aircheck[1][1]
|
local minp = plantslib.blocklist_aircheck[1][1]
|
||||||
@@ -376,7 +376,7 @@ end
|
|||||||
-- checking for air during the initial map read stage.
|
-- checking for air during the initial map read stage.
|
||||||
|
|
||||||
function plantslib:generate_block_no_aircheck(dtime)
|
function plantslib:generate_block_no_aircheck(dtime)
|
||||||
|
if dtime > 0.2 then return end
|
||||||
if #plantslib.blocklist_no_aircheck > 0 then
|
if #plantslib.blocklist_no_aircheck > 0 then
|
||||||
|
|
||||||
local minp = plantslib.blocklist_no_aircheck[1][1]
|
local minp = plantslib.blocklist_no_aircheck[1][1]
|
||||||
|
在新工单中引用
屏蔽一个用户