veger / TLBE

TLBE - Time Lapse Base Edition
MIT License
9 stars 6 forks source link

Speedup transitions #53

Closed veger closed 1 year ago

veger commented 1 year ago

Allows to speed up transitions, or (attempt) stop-motion transitions.

Creating a 1000 frames (40 second transition @ 25fps) stop-motion transition takes several ticks (the game is not freezing) on my PC. So it is not true stop-motion for large(r) transitions. This is even when setting force_render to true, which I expected forces the game to render all screenshots in the same tick?

Screenshot requests are processed in between game update and render. The game may skip rendering (ie. drop frames) if the previous frame has not finished rendering or the game simulation starts to fall below 60 updates per second. If force_render is set to true, the game won't drop frames and process the screenshot request at the end of the update in which the request was created. This is not honored on multiplayer clients that are catching up to server.

https://lua-api.factorio.com/latest/LuaGameScript.html#LuaGameScript.take_screenshot

See #44