MapGen: Attempt to speed up generation. Some MapGen.Peak fields can now be accessed directly. Layers are now defined for the entire chunk, rather than per node.

This commit is contained in:
Van
2026-03-15 22:08:13 +03:00
parent a34822ed54
commit 1531abc3e2
7 changed files with 63 additions and 107 deletions

View File

@@ -50,6 +50,11 @@ function Profiler:getDeltaTime(units)
end
---Displays the time difference in the chat using `core.log`.
function Profiler:logDeltaTime()
core.log(('DeltaTime[%s]: %.3f'):format(self:getDeltaTime()))
---@param min number?
function Profiler:logDeltaTime(min)
local delta = self:getDeltaTime()
if delta >= (min or 0) then
core.log(('DeltaTime[%s]: %.3f'):format(self.name, delta))
end
end