Cache time on client as well

- Fixes FPS for me after suspend from 40 to 500 fps
- Should generally improve performance
- Might lead to a few problems where we need to call set_new_tick() in a
  few more positions, so test please
This commit is contained in:
def 2016-06-28 02:15:55 +02:00
parent 35bd378a62
commit 987fad55cd

View file

@ -2285,6 +2285,7 @@ void DemoPlayer()->SetPause(int paused)
void CClient::Update()
{
set_new_tick();
if(State() == IClient::STATE_DEMOPLAYBACK)
{
m_DemoPlayer.Update();