Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

0 down vote favorite

I wrote a simple code that makes an object follow moursor or touch input and works so fast and responsive on editor but when I deploy it on my iPod, it has a slight delay. If you move your finger fast enough, you can see that the object takes time to reach to your finger, it's slight but noticable.

There is no problem in the path that object has to follow in order to get dragged around the scene, problem is it's always like 10 pixels late to the finger's current position. It's like input is checked on less intervals than update.

So is there anyway to make it more responsive? Like with what we can do with physic that we can force it to call more Fixed Update or anything similar.

I want it to follow my finger on the screen fast, without any delay.

I tried these so far with no fruit:

1) Changing FPS ro 60. 2) Changing various settings in AppController.mm

Even with the simplest code I have this problem, a new Unity project and one line of code that gets input's touch, translates it into game's position and puts it into the gameobject's transform component.

iPod touch is 4G and runs iOS 5.0.1 and is Jailbroken.

Thanks.

share|improve this question
This could be a limitation of the device itself. Do you have example of apps running on the same device that don't exhibit this problem? – Laurent Couvidou Dec 20 '12 at 14:44
I've seen other Unity games that have the lag but mine is way worse than the lag they have. For example in Bad Piggies if you move around parts that you are supposed to attach to your vehicle, you can see a bit of delay but mine is way worse. Same goes for Jack Lumber, which is also made with Unity. I'm so desperate that I'm thinking about alternatives to Unity as I can't find anything to solve this. – test84 Dec 20 '12 at 15:16

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.