- Home /
How to detect screen touching more frequently than fps.
I want to develop a rhythm game, which need to detect touching more frequently. The interval between two detecting should be less than 10ms or even 5ms which needs to detect 100 - 200 times per seconds in order to give a more accurate score. But for most mobile devices, the highest fps cannot exceed 60. What should I do ?
Answer by xxmariofer · Dec 22, 2020 at 01:45 PM
In unity is not posible you will need to create (or buy https://forum.unity.com/threads/native-touch-faster-touch-via-callbacks-from-the-os-with-a-real-hardware-timestamp.526842/) an asset to handle native touch events. But even if you manage to do that, and you manage to detect up to 200 touchs per second, probably the game experience will be horrible since most of the smartphones have a touch sampling rate from 60-120 with just a few of really powerfull and expensive phones getting near those 5ms like new samsung s20, but even expensive phones like iphone 12 or huawei p30 are stuck with 120 touches
What i intend to do is to response touches as quickly as possible. I understand that each phone has it's limit, but 60 times per second is really slow. If the game become lagging due to some reason, for example, fps descends to 20, it can still detect touches at a high frequency, that is what a rhythm game should be like. I became interested in the link you post, it seems to be what i want. Thank you for your help.
Your answer
Follow this Question
Related Questions
Different animations on mobile 0 Answers
Unity 2D Mobile Game Drawing Mechanic 0 Answers
getPressure for touch pressure on Android or iOS 3 Answers
Raycast from player to touch point? 2 Answers
Receiving UI/touch events while mobile soft keyboard is open 0 Answers