mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-12 19:18:20 +00:00
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:
parent
35bd378a62
commit
987fad55cd
|
@ -2285,6 +2285,7 @@ void DemoPlayer()->SetPause(int paused)
|
||||||
|
|
||||||
void CClient::Update()
|
void CClient::Update()
|
||||||
{
|
{
|
||||||
|
set_new_tick();
|
||||||
if(State() == IClient::STATE_DEMOPLAYBACK)
|
if(State() == IClient::STATE_DEMOPLAYBACK)
|
||||||
{
|
{
|
||||||
m_DemoPlayer.Update();
|
m_DemoPlayer.Update();
|
||||||
|
|
Loading…
Reference in a new issue