I have problem with iphone touch screen input

I used function update () and input mouse position command to get position of finger on Iphone.

but the problem is as soon as I touch iphone screen

FPS go down from 30 to 20.

I didn’t put any script but just input mouse position.

do you know any better way to get finger position?

and other question…

I use stratched particle for bullet comming out from the machine gun. but some how particle system is not rotating with the gun it’s only lookat z axis…

is there any way to rotate particle system?

It takes time for the CPU to process touch events, which is likely causing the slowdown that you’re experiencing…

Are you sure you aren’t triggering other events when you detect mouse movement that are causing the slowdown? I have never seen such a drastic change in FPS due to checking mouse position.

The question I have is what are you doing once you detect a touch? Are you doing something expensive?

no I turn off other scripts …

the script was simply…

function update(){
input mouse position somthing…
and couple of things do something with vector2 position.
}

what do you guys using to get finger position?

Since the iPhone is VSync’d, it has no real FPS values between 20 and 30. Once you drop below 30, you’ve dropped to 20, even if it should be 29.

Or at least, that’s what I’ve learned…