LWJGL Forum

Programming => OpenGL => Topic started by: Yuri6037 on November 16, 2013, 16:38:45

Title: Update void laggy !
Post by: Yuri6037 on November 16, 2013, 16:38:45
So, all my rendering code works perfectly.
The new problem is the stupid game update system witch is slow on AMD CPU and fast on Intel CPU ! In plus with Intel CPU you have sometimes lags due to non called update voids during 1, 2 seconds !

So why my timing system don't wan't to update my game correctly ?

Here is the timing code (in the !Display.isCloseRequested loop) :

--PRIVATE--

The getTime() void now :

--PRIVATE--


Normaly the update void need to be called every milliseconds in real life.

Thanks by advance,
Yuri6037
Title: Re: Update void laggy !
Post by: Yuri6037 on November 16, 2013, 18:35:39
Yeah ! Bug has been corrected !
Now let's pass to OpenAL + Paulscode...

Yuri6037