By submitting this feature issue, you agree to the following.
[X] There is no existing issue for this feature (or similar) already
Pull Requests or Links to add this feature
No response
Request
What do you want to achieve?
Reduce Dispatcher thread CPU usage.
I've tested it on TFS 1.4 with some commits from 1.6 with CMAKE_BUILD_TYPE=Release.
All players online were 30 SQM away from each other, making 2 steps per second with 10-20 monsters on screen of each player.
CPU usage by sendAll(bufferedProtocols); before changes from my commit:
By submitting this feature issue, you agree to the following.
Pull Requests or Links to add this feature
No response
Request
What do you want to achieve? Reduce Dispatcher thread CPU usage.
I've tested it on TFS 1.4 with some commits from 1.6 with
CMAKE_BUILD_TYPE=Release
.All players online were 30 SQM away from each other, making 2 steps per second with 10-20 monsters on screen of each player. CPU usage by
sendAll(bufferedProtocols);
before changes from my commit:After:
Most OTS engines report
sendAll(bufferedProtocols)
in OTS Stats under namefunctor
.Possible Solutions
https://github.com/gesior/forgottenserver-gesior/commit/ba6df5e7ab5f97cc78d86291b44e2a2a940e10eb