- Home /
Replay engine: Run my game as fast as possible. Use timeScale?
I am creating a replay engine, and the approach I've decided on for seeking is to replay everything up to that point as quickly as possible.
Everything is time based, so I'd like to use Time.timeScale.
My questions are:
Assume item A would normally arrive in 10 frames and Item B would normally arrive in 20 frames. If I make time scale high enough that both would finish in one frame, would that be problematic for the state being synchronized with the real-time playback, upon arrival at the seeked-to time? (assume positions are clamped upon arrival).
Is there a limit to speeding up timeScale? (I aim to test this soon, but would like to corroborate any successes/failures if anyone has input). Any caveats?
Is there a better Unity mechanism to leverage, maybe Time.captureFramerate or something obscure?
I'll eventually find some of this stuff out myself, as I'm currently experimenting with it, but would love to hear from others who have thought about this! Thanks :)
I'm not a fan of using timeScale except while testing. timeScale is limited to 100x and I've had problems when setting it to 0. But you can easily create your own timescale though. I don't know how to reply to your other concerns, they seem to be specific for your engine.
Your answer
Follow this Question
Related Questions
Fast forward time and NavMeshAgents in Unity 0 Answers
Timescale Issues(Making a replay function for game ) 0 Answers
Timescale issues 0 Answers
Javascript Timescale Problem 0 Answers
Can i ignore timescale when playing AudioSource.PlayClipAtPoint ? 1 Answer