FPS drop with too many monsters in the battle list
When you have too many monsters in your battle list the fps drops drastically.
Before creating an issue, please ensure:
- [x] This is a bug in the software that resides in this repository, and not a support matter (use https://otland.net/forums/otclient.494/ for support)
- [x] This issue is reproducible without changes to the code in this repository
Steps to reproduce (include any configuration/script required to reproduce)
- Summon lots of monsters
- Open Battle List (it will already be lagged even without opening it) and sort the data
Expected behaviour
Nothing unusual, this shouldn't be a costly process
Actual behaviour
FPS drops as if the game isn't being capable of handling the monsters/names in the battle list
How did you make sure it's the battle list?
I have tested the battle list with 40~50 creatures on the screen without any FPS drops.
I'm not, it's what people been saying all over otland. However when deactivating the battle module it indeed stops lagging, or at least reduce it by a little.
Perhaps it depends on what kind of sorting you are using, or it's somehow connected to the text box issue that edubart pointed out
How did you make sure it's the battle list?
I have tested the battle list with 40~50 creatures on the screen without any FPS drops.
It is partially the battlist, try having 50 monsters on your screen all losing health and turn on "Sort by Health". Your client will crash.
do fps still drop when you display the list without monster icons?