2006Scape
2006Scape copied to clipboard
Global lag when 40+ bots all follow each other
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.
Will look into this. I don't know why 40 people would all be following each other though lmao
For fun indeed! ;)
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!