- Home /
my game when built on ios is not smooth.
hello
in my project there is a circle which moves in -y direction.
however, when i run the game on the editor the circle moves very smooth, but on the ipad the circle movement is not smooth.
is there any settings for ios to make the movement smooth?
my movement code is transform.Translate with Time.FixedDeltatime in FixedUpdate() function.
Hi, please provide more context. Any relevant code snippets so we can understand how you are thinking, and what methods you've tried already.
Try perfor$$anonymous$$g those movements in Update using Time.deltaTime.
Why are you using FixedUpdate? Try transform.Translate with Time.delta time in Update(). Also, what does "not smooth" mean? Your object should not have a variable speed, but it may well be stuttery because iPads are clearly less powerful than PCs.
iPads are clearly less powerful than PCs.
It surprises me that they function at all :P
i tried Update() and Time.deltaTime and nothing changed.
by "Not Smooth" i mean you can see the circle like it moves from position 1 to position 2 then stops for 0.01 second then moves to pos 3 and stops for 0.01 second ......
edit#1:
i tried 2x AA and the circle movement was a little bit smoother but the game was soooo laggy
Answer by TheWarper · Mar 20, 2015 at 11:38 AM
if(Application.platform == RuntimePlatform.IPhonePlayer) Application.targetFrameRate = 39;
Answer by chetanisinanand · Mar 20, 2015 at 11:52 AM
This should resolve your issue
Application.targetFrameRate = 60;
and use Update instead of fixed update
Hey Cheta, what made you decide to use a targetFrameRate of 60 for iOS?