Game running in slow motion after iOS Build

Hey Guys!

I have a strange behavior in my Game. when i Build it for iOS, everything is super slow and feels like it runs in slow motion. Its not Lagging, i know the difference between a low frame rate and slow motion :wink: Everything is half as fast as it should be, character animations, menus that open, camera zooming, but scrolling in a UI is at normal speed

I don’t know how i can search for the error since there are no error messages at all. I only have a “ld: file is universal (2 slices) but does not contain a(n) armv7s slice” when I apply the validated project settings in XCODE but when i do this i can not build at all. but i don’t think this has nothing to do with the slow speed of my game, right?

can any unity setting cause this problem? or does any of you had this problem before? or which informations do you need more to solve this issue?

thanks!

Have you remote profiled the game or setup an FPS counter to see what the fps is doing?

I had a look in the XCODE profile thing. i dont know how this is actually called but the one in the Debug Navigator and its constantly on 30 FPS - cpu usage is 31% and memory also just 123mb. so everything is fine there.
I also have a dragable camera in my game (rts/rpg thing) and when i drag this cam its also super smooth and not slowed down at all

There is an option to do a debug build and link the profiler to your app, check the docs for details.

Are your animations and transition speeds using the Time.deltaTime variable to ensure they run at the same speed on every platform?

At any point do you change the time scale variable or use an asset/code that does?

Suddenly also the unity preview runs also in slow motion o.o Thats weird. So the bug is now available on all platforms.

How does a “time scale variable” code looks like? So i can search for it in all files

I know you said you already checked the frame rate dependency in your code, but you never know so I ll just say it…
Did you try to set application target framerate ? Unity - Scripting API: Application.targetFrameRate
It default to 60 in the editor but is set to 30 by default when building for iOS. Seems like it would make sense of your animations running “Twice” slower…

Ok, i finally found the issue. its in the quality settings.
when i turn on the “good” settings - vsync count is off. so when i turn them into “fantastic” the vsync count is on Every VBank. so just turn the vsync count on.

so that solved the problem that the game is super slow in the unity player. but when i make an ios build it is again in slow motion. so vsync is off in the ios build? how can i turn it on?

I made a video to show you what i mean:

and here with a longer version of the Iphone scene:

from 0:16 on you can clearly see, that this has nothing to do with a low framerate since the panning/scrolling looks super smooth

As @Arowx mentioned, it looks like something in your movement code isn’t frame rate independent. Are you sure you’re using Time.deltaTime correctly?