steamroller-airmash / airmash-server

Server implementation for the game AIRMASH
Apache License 2.0
29 stars 8 forks source link

After images of missiles appears sometimes #92

Open usopp-airmash opened 5 years ago

usopp-airmash commented 5 years ago

Sometimes the boosting/ missile flying sound keeps playing.

ghost commented 5 years ago

[moved from #93 -- crazy GitHub login redirect every time!]

Just some notes

On an unrelated journey, I found:

https://github.com/steamroller-airmash/airmash-server/blob/674435c931d61c2b785310d535c910ec37f74249/server/src/utils/event_handler.rs#L25-L31

I could not find where this magic '50' number comes from, however the presence of an upper limit that leads to internal queues dropping data at least sounds worth investigating further

The magic number comes from shrev itself. EventChannel is a just a fixed-size ring buffer