Dt and servertime steps are capped at .4s

Describe the bug:
When the 1 second Lua timeout happens, dt is capped to .4 seconds, the server time will also just progress by .4 seconds (but UTC will stay correct).

How do you cause this bug?

  • List the steps
    Add a script with an OnTick function like:
function ScriptName:OnTick(dt)
    while true do end

the script will timeout when the frame reaches a second, but dt will never print more than .4s (even if it should be able to print up to 1s).

Screenshots / video of bug:

Which platform: PC

Which input: keyboard + mouse

Your Crayta username: Daigoro

How regularly do you see this? (E.g. 2/3 times - please try 3 times if possible):

Version number (found in Help tab in Settings): 0.f3.28.120518

1 Like

Hey there @Ya_shi_shi !

Thank you for bringing this to our attention, I have submitted a ticket for this issue so that our internal team can investigate this issue further.

Thank you again for entering this issue! :+1: