2011/1/30 Mohs3n <moh...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups "android-ndk" group.
> To post to this group, send email to andro...@googlegroups.com.
> To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
>
>
2011/1/30 Mohs3n <moh...@gmail.com>:
> I can run the same game on both Windows and Android platform and the
> game feels like slow-motion on Android. My game is running in 60fps or
> lower. But, the time steps I'm getting from clock_gettime (on Android)
> is something from 0.009 to 0.016 seconds, which is clearly lower that
> 0.016 time steps which I get on average when running in 60fps. Any
> idea what I might be doing wrong?
>
I changed cpuid from CLOCK_PROCESS_CPUTIME_ID to CLOCK_MONOTONIC and
that fixed the slow-mo problem. Thanks for your advice.
--