Author Topic: PS is laggy: what can be done?  (Read 3778 times)

steuben

  • Veteran
  • *
  • Posts: 1834
    • View Profile
    • Myspace
Re: PS is laggy: what can be done?
« Reply #15 on: July 08, 2009, 02:51:53 pm »
you guys are thinking too small. having skimed through all the fixes only fix lag in ps, rather lag in general.  to fix the general problem of lag you have to declear dt/dt (the velocity of time) as a variable rather that a constant.
may laanx frighten the shadow from my path.
hardly because the shadow built the lexx.
the shadow will frighten laanx from my path.

Hiker Hauk

  • Wayfarer
  • *
  • Posts: 1
    • View Profile
Re: PS is laggy: what can be done?
« Reply #16 on: July 15, 2009, 12:41:44 pm »
Lag may come from 2 aspects, GPU lag and network stack lag.

It occurs to me PS is render engine driven, which IMHO is not optimised and suitable for large projects.

Code: [Select]
    // start the main event loop
    csDefaultRunLoop(object_reg);

For MMORPG, sometimes even 10fps is acceptable, as long as you do not tie game logic to rendering.
Something like below might be a better choice.

Code: [Select]
while (!quit)
{
    ...
    doGameLogic();
    doAudio();
    ...
    if (time2render)
        renderOneFrame();
    ...
}


Also, for many players there is no lag when logged in, but more and more lags as time passes. Something not properly cleaned up?