[bug] latest manaplus 1.9.3.23 got lags/stutter.
Posted: 29 May 2019, 05:49
Latest ManaPlus version (1.9.3.23 and also current git) has developed some really weird behavior, becoming prone to very specific kind of lag/stutter, at least on TMWA.
Prerequisite:
There should be plenty of monsters chasing player. I've got most pronounced effect with fallens vs mage setup.
To reproduce:
1) - Get chased by plenty of monsters. Often that would be enough.
- Alternatively, get hit by some monsters and receive some damage while walking away from monsters swarm.
2) Keep moving away from monsters.
3) Look what happens if you trying to keep moving away from monsters.
Result:
At some point player tends to get stuck, client jumps backward (position resync).
Player's attempt to to move away fails, yet another jump happens, etc.
Overall client tends to end up exposing very jumpy behavior, jumping to "correct" position up to several times per second, likely only limited by CPU power or network. This appears to be very taxing overall, at which point things get even worse and typical result is player being chewed by swarm of monsters, being unable to escape at all due to client jumping current position here and there, provoking even more lag.
N.B. grinding through git It seems it could be related to recent changes in player position fix/sync code. Unfortunately it caused quite some fallout on TMWA to extent players advice each other not to update to new version. TMWA had no desync issues for a while - so fix actually has caused regression.
Prerequisite:
There should be plenty of monsters chasing player. I've got most pronounced effect with fallens vs mage setup.
To reproduce:
1) - Get chased by plenty of monsters. Often that would be enough.
- Alternatively, get hit by some monsters and receive some damage while walking away from monsters swarm.
2) Keep moving away from monsters.
3) Look what happens if you trying to keep moving away from monsters.
Result:
At some point player tends to get stuck, client jumps backward (position resync).
Player's attempt to to move away fails, yet another jump happens, etc.
Overall client tends to end up exposing very jumpy behavior, jumping to "correct" position up to several times per second, likely only limited by CPU power or network. This appears to be very taxing overall, at which point things get even worse and typical result is player being chewed by swarm of monsters, being unable to escape at all due to client jumping current position here and there, provoking even more lag.
N.B. grinding through git It seems it could be related to recent changes in player position fix/sync code. Unfortunately it caused quite some fallout on TMWA to extent players advice each other not to update to new version. TMWA had no desync issues for a while - so fix actually has caused regression.