Jerking game when touch the screen
Hi everyone.
Now I am doing 60 FPS game for iOS like the runner games. Faced with the problem of jerking while touching the screen.
I am testing the game on the iPhone 6 and iPad 4.
After a lot of tests I faced with a situation, that the game jerking only on the iPhone 6. On the iPad all goes smoothly and without jerks.
All rigidbody and collider components was specially disabled on movable objects, jerking did not disappear.
I tried to enabled and disabled vSync, options this time.DeltaTime and SmoothDeltaTime. Options: QualitySettings.vSyncCount = 2; and SmoothDeltaTime helped to achieve maximum smoothness of the game, but not get rid of jerking on iPhone 6.
Jerking occur only when triggered:
if (Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Began)
{
if (!Step)
{
Step = true;
}
}
To verify that the problem occurs only when occurred touch on the screen, was created test function that every sec simulate a click.
if (!startCour)
{
startCour = true;
StartCoroutine (Test ());
}
IEnumerator Test()
{
yield return new WaitForSeconds(1);
if (!Step)
{
Step = true;
startCour = false;
}
}
In this case, jerking disappear.
Why no jerks on iPad(32 bit) but on the iPhone(64 bit) they exist?
Maybe someone faced with this problem and can help me?
Your answer
Follow this Question
Related Questions
Massive (>1sec) lag spikes in game, within 10 seconds of starting 1 Answer
Custom touch control stops abruptly! 0 Answers
Having an issue with touch input lag on certain Android devices, any help? 1 Answer
[Simple] [Networking] Smoothing a Rigidbody 1 Answer
Touch screen tap and raycast2D to hit moving object 0 Answers