trying to decrease "client_preThink" CPU usage
Is there any way to decrease CPU load as much as possible?
(bhop as usual) PHP Code:
|
Re: trying to decrease "client_preThink" CPU usage
You can probably replace client_PreThink with Ham_Player_Jump.
Both are called once per frame but Ham_Player_Jump only if a player has the jump key held Code:
/** |
Re: trying to decrease "client_preThink" CPU usage
Always declare variables in forwards that is being called many times per second using static, change players Boolean variables to bitsum booleans, returning in prethink is ignored so best just to return plugin_continue.
|
Re: trying to decrease "client_preThink" CPU usage
Quote:
|
Re: trying to decrease "client_preThink" CPU usage
Blank return is a plugin continue, but also you're right it should be just return.
|
Re: trying to decrease "client_preThink" CPU usage
maybe a check of 0.1 is better, because prethink is according to the player's frames
|
Re: trying to decrease "client_preThink" CPU usage
Quote:
|
Re: trying to decrease "client_preThink" CPU usage
Like CrazY said, using PreThink for auto-bunnyhop is not a 2021 way of making plugins.
Ham_Player_Jump is the right solution. |
Re: trying to decrease "client_preThink" CPU usage
Quote:
|
Re: trying to decrease "client_preThink" CPU usage
It's literally 1 line of code. Understanding PreThink and CPU usage but not HamSandwich doesn't make much sense.
Code:
|
All times are GMT -4. The time now is 23:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.