- Home /
Question by
Ticklol · Aug 10, 2017 at 08:40 PM ·
android buildanimationsslow game
Unity 5.6 Animator Running slower on android Device Time.deltaTime seems to run slower
I have this Code of a timer:
if(_canUpdate)
{
_time += Time.deltaTime;
if (updateStageTime != null) updateStageTime(_speedMultiplier);
if (_time >=1f)
{
_time = 0;
_seconds-- ;
if (_seconds < 0)
{
_seconds = 59;
_minutes --;
}
Audio and animators that just play at the same time the audio is played, with the speed of 1. While running inside the editor everything syncs up and works perfectly. When I build it and play on a Motorola G5 with cardboard, the timer takes 2 seconds to lower 1 second, and the animations run at a really slow speed. Any ideas on why this happens and if the Unity animator uses Time.deltaTime as a default or uses it framebased?
Comment