2006Scape icon indicating copy to clipboard operation
2006Scape copied to clipboard

Global lag when 40+ bots all follow each other

Open dginovker opened this issue 5 years ago • 3 comments

Lag spontaneously comes onto the server if you get a ton of bots to follow each other around. The lag stops after the bots log off.

dginovker avatar Dec 13 '19 04:12 dginovker

Will look into this. I don't know why 40 people would all be following each other though lmao

mrextremez avatar Dec 13 '19 07:12 mrextremez

For fun indeed! ;)

Gptaqbc avatar Dec 13 '19 07:12 Gptaqbc

Maybe this: https://www.rune-server.ee/runescape-development/rs2-server/tutorials/554788-pi-improving-performance-your-server-caching-update-blocks.html

The problem here is that when updating for players around you, you are unnecessarily rebuilding the update blocks for all of those players. Remember what I said in the beginning about how building the update blocks eats up a majority of the cycle time (the longer a cycle takes = the more stress the server is on). When we cache update blocks we are essentially 'reusing' previously constructed blocks instead of taking out the time to construct new ones (building less update blocks = less cycle time = less lag).

This could also help: https://www.rune-server.ee/runescape-development/rs2-server/snippets/425592-pi-walking-lag-process-lag-fix.html

I have no idea if any of this is already done though!

Gptaqbc avatar Dec 13 '19 14:12 Gptaqbc