splewis / csgo-practice-mode

CS:GO Sourcemod plugin for private team/individual practice servers
GNU General Public License v3.0
455 stars 70 forks source link

Extremly low fps and console spam after CS:GO update (2021-09-23) #209

Open Joaaoc opened 2 years ago

Joaaoc commented 2 years ago
zachmeyner commented 2 years ago

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.

zachmeyner commented 2 years ago

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

zachmeyner commented 2 years ago

Changing the version of sourcemod did not fix the issue. I am out of ideas now.

cwwwipsy commented 2 years ago

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: 1) Connect to the server and let the DispatchAsyncEvent spam flood your game console. 2) After several minutes of waiting, it should connect and you should have HORRID FPS. 3) Quit your game entirely 4) 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.

Joaaoc commented 2 years ago

@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.

cwwwipsy commented 2 years ago

One more suggestion... Try adding bot_join_after_player 1 to server.cfg in the /cfg/ folder