Update void laggy !

Started by Yuri6037, November 16, 2013, 16:38:45

Previous topic - Next topic

Yuri6037

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

Yuri6037

Yeah ! Bug has been corrected !
Now let's pass to OpenAL + Paulscode...

Yuri6037