- Home /
Android and Time.DeltaTime
Hi! We have a problem with Time.DeltaTime stuff. We use it for generation of GameObjects as a Timer. On computer and on tablet it is working. But on Galaxy S3 Mini we have a problem - Time.DeltaTime is so small, so generation doesn't calling at all. Previously it was working, but now all is broken. It looks like all Time.Anything stuff has too small changes from frame to frame while FPS seems normal.
Any suggestions?
UPD. On mobile phone, DeltaTime is increasing by 0.001 every frame.
Time.deltaTime
is meant to be the time in seconds between frames. You sure you're not using Time.timeScale
anywhere?
Yes, absolutely. A already checked that and displayed on my game screen. It is 1.
I'd be interested to see what the maths is that is contingent on Time.deltaTime being greater than a certain threshold.
I have some constant (generationTime). I'm doing DeltaTime += Time.deltaTime; if (DeltaTime >= GenerationDeltaTime) {... DeltaTime = 0;}
The short snippet you posted looks like it should work. So long as Time.deltaTime is greater than zero, I suspect the problem is in your DeltaTime mechanism.
Your answer
Follow this Question
Related Questions
GPS Application with Unity Android 1 Answer
UnityException: APK Builder Failed! 0 Answers
Unity Admob Failed to re-package resources 2 Answers