PraxTube / ace-of-the-heavens

Fast paced online 1vs1 action game in an arcade-like, 2D top-down style
https://praxtube.itch.io/ace-of-the-heavens
MIT License
10 stars 0 forks source link

BUG: Desyncs when shooting with Rocket on high ping #22

Open PraxTube opened 10 months ago

PraxTube commented 10 months ago

When shooting rockets with a high ping (100ms is enough) and spamming Left-Right you will get infinite desyncs that don't reset (even after a rematch). I suspect something with either despawn of rocket, spawn of explosion or something with the timer.

PraxTube commented 10 months ago

This is an issue of rocket_explosion.rs. More specifically, it's an issue of how we despawn the explosions (currently the issue is the despawn line in animate_rocket_explosions).

PraxTube commented 10 months ago

This might very well be caused by #21. Essentially the Sprite and SpriteSheet don't get rollbed back, and as a result they might live/die unexpectedly.