Skip to main content
gamedev.net
🔒 Locked

Android Game Timer

Started by SoulSharer 0 replies 2.1k views
Original Post
SoulSharer
SoulSharer
Hello everyone, I got stuck on making game timer for android platform.




So far I tried to use:

System.currentTimeMillis()

System.nanoTime()

SystemClock.elapsedRealtime()




But nothing seem to wok smooth, animation getting stuck with all of them. What is the best method to measure delta time?

P.s. I'm using Java + OpenGL ES

By the way seems to be another vsync problem to me


Thanks for any help!
SoulSharer
SoulSharer
I think I found out.. it is garbage collector which makes animation stuck, so I need to fix my framerate.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.