@Ch*man GT10 bug

hi :slight_smile:

in the gametuturials.com port of “Time Based Movement” (nr 10) is a lil bug. it just doesnt work :wink:

line 428:


long currentTime = System.currentTimeMillis();

we all know how accurate that is.

if u change


gl.wglSwapIntervalEXT(1);

to


gl.wglSwapIntervalEXT(0);

(line 304)
u can c that easily.

well i know that there is a hi-res timer in lwjgl… but i dont know the method / where i could find it.

(in addition i’m too lazy to write an email) :>

The high-res timer is composed of two methods: Sys.getTime() to get the current “tick” count, and Sys.getTimerResolution() to get the number of “ticks” per second.

ah yea thx :wink:

it works now… and there was another bug (typo-ish) wich prevents “time based movement” - duh.

fixed it. changed kSpeed to match the previously wrong speed (approx - cuz it was way too slow).

email is on the way :wink:

Thanks oNyx for your bug report, I will update the site when i’m back from holidays :slight_smile:

well u updated it… but the version there is still the old one (and not the one i send u) :>

LOL !!!

Sorry… This will be corrected soon, don’t worry !