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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user