Omegastick / bots

1 stars 1 forks source link

Online play is very slow #109

Closed Omegastick closed 5 years ago

Omegastick commented 5 years ago

I reckon this is because the in-game clocks get ahead of the server clock, or something similar. We can fix this by not increasing the in-game clock if a frame from the server hasn't arrived.

Omegastick commented 5 years ago

I made it so that the playback environment can't run ahead of the main environment, and while it's less jumpy now, everything is very slow.

I need to check if this is because the server is sending updates out slowly or if it is something else.

Omegastick commented 5 years ago

The server is running at about 4 ticks per second, so something is slowing it down. It could be that the machine just isn't strong enough (unlikely, IMO) or that we are wasting CPU cycles somewhere. I'll try on a stronger machine first, I guess.

Omegastick commented 5 years ago

Got it running at about 9.5 ticks per second. Good enough for now.