mirror of
https://github.com/Dadido3/noita-mapcap.git
synced 2024-11-18 17:17:31 +00:00
Decrease timeout until wiggle
This commit is contained in:
parent
63dd11fd2d
commit
b81fcd8417
@ -83,9 +83,9 @@ local function captureScreenshot(pos, ensureLoaded, dontOverwrite, ctx, outputPi
|
|||||||
-- Prematurely stop capturing if that is requested by the context.
|
-- Prematurely stop capturing if that is requested by the context.
|
||||||
if ctx and ctx:IsStopping() then return end
|
if ctx and ctx:IsStopping() then return end
|
||||||
|
|
||||||
if delayFrames > 100 then -- TODO: Consider smaller timeout to start wiggling
|
if delayFrames > 30 then
|
||||||
-- Wiggle the screen a bit, as chunks sometimes don't want to load.
|
-- Wiggle the screen a bit, as chunks sometimes don't want to load.
|
||||||
if pos then CameraAPI.SetPos(pos + Vec2(math.random(-100, 100), math.random(-100, 100))) end
|
if pos then CameraAPI.SetPos(pos + Vec2(math.random(-10, 10), math.random(-10, 10))) end
|
||||||
wait(0)
|
wait(0)
|
||||||
delayFrames = delayFrames + 1
|
delayFrames = delayFrames + 1
|
||||||
if pos then CameraAPI.SetPos(pos) end
|
if pos then CameraAPI.SetPos(pos) end
|
||||||
|
Loading…
Reference in New Issue
Block a user