mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 09:34:19 +00:00
Introduce cached ticks for client again, this time with workaround for
particles. Hopefully not many other parts of the code will need this.
This commit is contained in:
parent
071822d281
commit
4681f69b1b
|
@ -2679,6 +2679,8 @@ void CClient::Run()
|
|||
|
||||
while (1)
|
||||
{
|
||||
set_new_tick();
|
||||
|
||||
//
|
||||
VersionUpdate();
|
||||
|
||||
|
|
|
@ -137,6 +137,7 @@ void CParticles::OnRender()
|
|||
if(Client()->State() < IClient::STATE_ONLINE)
|
||||
return;
|
||||
|
||||
set_new_tick();
|
||||
static int64 LastTime = 0;
|
||||
int64 t = time_get();
|
||||
|
||||
|
|
Loading…
Reference in a new issue