- Home /
VSync Count seams to be off in iOS Build
Hey Guys. I am having the problem, that my Game seams to run in "slow motion" under iOS. after a lot of try and error i think I know the reason: when i turn VSync from "Every VBank" to "Dont Sync" in the Unity Player the Game also runs in the same weird "slow motion mode (no, its not "just" a low frame rate - the profiler says constant 30FPS)" there.
so I set in every Quality Setting the VSync to "Every VBank" and hope that will help but i have still super slow motion.
Does someone know how to solve this issue or had something like this before? Thanks!
Answer by keburanuil · Aug 12, 2014 at 08:54 PM
I solved it using this script:
using UnityEngine;
using System.Collections;
public class FrameControl : MonoBehaviour {
public int target = 45;
void Start () {
QualitySettings.vSyncCount = 0;
}
void Update () {
if (target != Application.targetFrameRate){
Application.targetFrameRate = target;
}
}
}
Somehow forcing game to run at 30-60 fps seems to be working and the slow motion is gone. It's weird because you don't have to do this when you build on android.
thanks, that helped to not have the slow down in the unityplayer when Vsync is off but my ios build is still in slow motion :/
$$anonymous$$an, thank you, you saved my day! I don't know why this option is not setup by default for ios buld...
Your answer
Follow this Question
Related Questions
vsync question 1 Answer
VSync won't disable 3 Answers
How do I disable V Sync on Android 0 Answers
Mathf.SmoothDamp and vSync 1 Answer
Is there any reason VSync should effect the charactercontroller? 2 Answers