Framerate drop on Touchevent

Hello,

I’ve experience some strange behaviour. Whenever i touch the screen of my Android Game I’m developing, the frame rate would drop from 37 to 30 fps, or from 30 to 22-23 as long as I hold the finger down and will go up when I release it.

I’ve deactivated all scripts which use Input.xxx methodes/properties, so this doesn’t seem to be the reason for it. Is there a reason why touches lower the fps by such a big amount and how to reduce this side effect?

Regards
Tseng

Hi.

It might not be a flaw in Unity and so far I haven’t seen others mention the same issue. It could be a firmware issue on your particular device. I used to program Java games for many years for a large range of mobile devices and I’ve seen some weird behavior on some of them. Which device are you experiencing this issue on?

Not directly firmware but software. older android devices didn’t have full multitouch capable screens, they use software to achieve it more or less which uses a lot cpu.

for broad support on android you must not use multitouch anyway, so ensure to disable it by disabling the corresponding flag if you enabled it previously

Sorry to reply so late, this board is kind of missing thread update notifications or I just couldn’t find it.

It’s not that old… it’s a HTC Desire. But it happens no matter how many fingers one use.

Whats your touch code? does it do this on a completely empty project?

这你都不知道???试试用安卓sdk+安卓开发模拟器测试看看fps有那么多么?