x


Touch Lag With S2

This is what I'm doing:

Update () {

    if (Input.touchCount > 0) {
         tempDirection = Input.touches[0].deltaPosition.x;
    }

    directionVector.x += tempDirection;
    if (directionVector.x <= -maxMove)
       directionVector.x = -maxMove;
    else if (directionVector.x >= maxMove)
       directionVector.x = maxMove;

    if (fakeShip.position.x <= -maxMove)
       fakeShip.position.x = -maxMove;
    else if (fakeShip.position.x >= maxMove)
       fakeShip.position.x = maxMove;

    fakeShip.position = directionVector;

    if (fakeShip.position.x >= -maxMove && fakeShip.position.x <= maxMove)  {
       myTransform.position = directionVector;
    }

}

So basically you can move object with touching and moving your finger left and right. (typical arkanoid game)

This works nicely on most android phones (tested with ZTE Blade, Samsung Galaxy Nexus (4.0ICS) ...) But there is serious delay when you are trying to play this on Samsung Galaxy S2 (4.0 ICS) tried at least with 3 different S2 phone and it has same delay. (This phone is the most popular, so I need to get this fixed)

Any advices?

more ▼

asked May 08 '12 at 02:37 PM

jjvaris gravatar image

jjvaris
0 1 1 1

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

I have exactly the same problem on my galaxy s2 with android 4.0.3.I have tried friends galaxy s2 with android 2.somethink and it works perfectly. Did you find any solution?

more ▼

answered Jun 19 '12 at 12:59 AM

SER_Freeman gravatar image

SER_Freeman
0

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1095
x580
x196
x179

asked: May 08 '12 at 02:37 PM

Seen: 603 times

Last Updated: Jun 19 '12 at 12:59 AM