Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

iOS returning different times for WaitForSeconds at small floats (0.035)

$
0
0
**Update: Moving everything over to a MonoBehaviour class and using InvokeRepeating has resolved the issue. Giving similar times to OSX.** On OSX the waitForSeconds(0.035f) takes ~0.036 seconds. On iOS the waitForSeconds(0.035f) takes ~0.066 seconds. Edit: Changing the 0.035 to a smaller value holds no change until it suddenly jumps to ~0.033 seconds. I'm starting to think that at those small targets, iOS does not want to give much accuracy. Edit2: Even at larger waitTimes like 0.15f & 0.22f, the iPhone is still having timing differences. It's getting closer, but still lagging behind.

Viewing all articles
Browse latest Browse all 4709

Trending Articles