csgo-practice-mode
csgo-practice-mode copied to clipboard
Extremly low fps and console spam after CS:GO update (2021-09-23)
-
Expected behavior Fix low fps and console error
-
Actual behavior After executing the csgo-practice-mode plugin or changing server map all CSGO clients get extremely low fps (20 - 60 fps) while the console is spamming a error message: "DispatchAsyncEvent backlog, failed to dispatch all this frame. 52400 of 52404 remaining". After a few minutes (1 to 10 minutes) the console stops printing the error and fps returns to normal.
-
Steps to reproduce Plugin version: Latest 304 build Sourcemod version: 1.11.0 and 1.10.0 (tested with both versions)
I've found this to be caused by sm_practicemode_autostart "1"
in cfg/sourcemod
. This also seems to cause the .setup
menu to bug out and not allow you to exit practice mode.
Edit: This also happens on the newest github release. It does not happen on my other server, but I do not know what version of practice mode that my other server is running.
Another update: my other server is running the latest github build and the issue does not occur on there. I installed all the same plugins on both servers, the current only difference is the version of sourcemod and metamod that each are running. The working one is running sourcemod 1.10.0.6514 while the new one is running 1.10.0.6516 and both are running metamod 1.11.0-dev+1145
Changing the version of sourcemod did not fix the issue. I am out of ideas now.
Can you post your server log?
Do you have any other non-sourcemod plugins enabled? Basically this issue seems to be caused by plugins trying to run so many commands with the client, and I think the update is limiting what can be allowed.
I'm running the dev build version of sourcemod 1.11, and you should try this. This is basically the stable version; but, sourcemod mods are being lazy. I installed a fresh install of practicemode 1.3.4 and the issue is no longer present. This was tested with only botmimic, csutils, and practicemode plugins installed (with all other default sourcemod plugins).
That alone SHOULD be your fix.
You can also try to make sure that the auto-start feature is NOT being used. Set it to 0 in the /cfg/sourcemod/practicemode.cfg
If all of the above fails, try this as a work around, and please let me know the results:
- Connect to the server and let the DispatchAsyncEvent spam flood your game console.
- After several minutes of waiting, it should connect and you should have HORRID FPS.
- Quit your game entirely
- Reconnect to the server and the experience should be smooth.
Note: Map changes could cause issues for you. Best rule of thumb is to have the plugin unloaded between map changes, then manually start with .prac
Note: I had an issue with a plugin spawning bots as the user was connecting, and putting bot_join_after_player in the server.cfg helped with the DispatchAsyncEvent spam.
@cwwwipsy , I had already tested it only with this plugin active and it had the same problem, maybe its a problem with auto-start.
My workaround is: by default unload the plugin when the map is changed, so when the map loads run a command to load the plugin and all works fine.
I think @cwwwipsy solutions works too.
Thanks for the suggestions.
One more suggestion... Try adding bot_join_after_player 1 to server.cfg in the /cfg/ folder