Author Topic: In game lag/spikes  (Read 2323 times)

Offline cen

  • Eurobattle.net Admin
  • WickedSick Member
  • *
  • Topic Author
  • Posts: 2167
  • Country: si
  • Karma: +281/-57
  • Lok'tar Ogar
  • Awards Lagabuse Legend LA High Staff [EPIC] MadBalls Tournament Winner [RARE] MVP Member [LEGENDARY]
    • View Profile
    • EuroBattle.net
    • Awards
Re: In game lag/spikes
« Reply #15 on: November 30, 2014, 12:59 »
This is a slightly modified gproxy that will output time in miliseconds if packet processing time exceeds 60ms.

The update function works like this:

1. Do some stuff
2. Check if there is anything to receive or send on sockets, wait at most 40ms
3. Process packets if any of the sockets is ready
4. Do some more stuff
5. GOTO 1

If something inside here would take too much time you would get a lag spike. If this is fast enough however, the only reason you would get a lag spike is if the packets are taking too long to go between host and gproxy (high ping). Even if your !p is low, it might be possible that it spikes up for a short time for some reason and you don't actually see that from the command output. If these results are OK I might write a test case for ping spikes in the future.

Feel free to dl this gproxy and send back gproxy.log after playing a game with spikes.