CSGO plugin optimization
Hello, I want to optimize my sourcemod plugins.
I read this article from wiki. Anything else I should know? Someone sad that SDKHook_OnTakeDamage very strongly loads CPU on CSGO with so many players. How to resolve this issue? For example, which code is best by your experience? PHP Code:
PHP Code:
|
Re: CSGO plugin optimization
the second doesn't make any sense
|
Re: CSGO plugin optimization
What would you be doing with SDKHook_OnTakeDamage that would put it under a heavy load?
You should be doing quick calculations there, simple math. |
Re: CSGO plugin optimization
Quote:
|
Re: CSGO plugin optimization
Profile your plugin and get some hard statistical data before you declare random sections of code as "unoptimized".
|
Re: CSGO plugin optimization
Quote:
But maybe you guys know from your experience how to better coding? |
Re: CSGO plugin optimization
Quote:
Like show an example that is making OnTakeDamage slow down the server... |
Re: CSGO plugin optimization
Quote:
If I will use so much code in this functions |
Re: CSGO plugin optimization
A ton of things. If your server cant handle more than 32 players, then don't set the slots above 32..
None of these should show drastic changes in the server, unless for some reason you have a plugin doing stupid stuff. |
Re: CSGO plugin optimization
Using the forwards isn't going to cause lag or whatever it's all dependent on what you do inside the forwards.
|
All times are GMT -4. The time now is 19:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.