Hi everyone. Is there a way to increase how often a device checks for input? My app seems to have a problem reading fast input whereas other games I’ve played don’t seem to have that problem.
The only time I have seen it be a problem is when your FPS is too low (due to graphics, music, etc.) Have you profiled your game to see how fast it is running?
No i havent. How do you profile an iphone/ipad game?
I changed the FALLBACK_LOOP_TYPE to EVENT_PUMP_BASED_LOOP and changed “kMillisecondsPerFrameToProcessEvents” to 0 instead of 3. Also I increased the FPS from 30 to 60. This really improved gameplay but now the physics has some type of weird jitter associated with friction. Is that normal?
what kind of input?
touch or accelermeter?
there is a setting in appcontroller.mm how often the acc. shall be queried…
hth
greetings, thomas
It’s touch input. I turned the accelerometer off since I’m not using it. ![]()
ah, ok.
in this case you should really profile, just set the constant for the profile in appcontroller.mm to 1 (instead of 0).
then run the game in xcode and watch the console…
you should see where the bootleneck is.
greets,thomas