Raised This Month: $12 Target: $400
 3% 

FPS Limiter v0.5


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Gameplay       
Natsheh
Veteran Member
Join Date: Sep 2012
Old 09-01-2021 , 16:40   FPS Limiter v0.5
Reply With Quote #1

  • Description :

    This plugin basically calculates the frames per second the player is receiving and adds a limitation to the player FPS forbidding the player from using a higher FPS than the value of the "fps_checker_maxfps" CVar.
  • Requirement for AMXX Version 1.8.2 or lower:
    Cvar Utilities module
  • Change logs
    Code:
    v0.3: * Released on AM.
            * Fixed a bug while the player is frozen causing FPS Over-limits
            * Added CVars !
            * Added Punishments !
    
    
    v0.4: * Organized the if statement checks in the cmdstart forward. 
    
    
    v0.5: * Added a new CVar process the ability to activate or deactivate the plugin.
  • CVars :
    • fps_checker_state Default value: 1
    • fps_checker_maxfps Default value: 105
    • fps_checker_maxwarnings Default value: 3
    • fps_checker_punishment Default value: 0
      • 0 - Kick the player
      • 1 - Slay the player
      • 2 or higher - Ban the player depending the value of the CVar
  • Credits:
    Thanks to Dev-CS for the original plugin.

Note : if you're using the English language as your server language, there's no need for the translation file to be installed.




Servers are using this plugin!
Attached Files
File Type: txt fps_checker.txt (153 Bytes, 300 views)
File Type: sma Get Plugin or Get Source (fps_limiter.sma - 444 views - 6.2 KB)
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 10-14-2021 at 15:29.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
JocAnis
Veteran Member
Join Date: Jun 2010
Old 09-03-2021 , 10:15   Re: FPS Limiter v0.3
Reply With Quote #2

is this very well tested with players who have higher ping?
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 09-03-2021 , 11:17   Re: FPS Limiter v0.3
Reply With Quote #3

Quote:
Originally Posted by JocAnis View Post
is this very well tested with players who have higher ping?

Not really but doesn't players with higher ping mean lower fps?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 09-03-2021 at 14:09.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Old 09-03-2021, 13:14
Napoleon_be
This message has been deleted by Napoleon_be.
JocAnis
Veteran Member
Join Date: Jun 2010
Old 09-03-2021 , 13:36   Re: FPS Limiter v0.3
Reply With Quote #4

Players with 100+ ping had issues (false kick) with plugin from dev-cs, i have no idea what you changed from their code/math but it will be better to test, if possible
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-03-2021 , 13:52   Re: FPS Limiter v0.3
Reply With Quote #5

Quote:
Originally Posted by Natsheh View Post
Not really but doesn't players with higher ping mean lower fps?
What does ping(network latency) have to do with fps(how many frames per second your gpu can output)?
__________________

Last edited by HamletEagle; 09-03-2021 at 13:52.
HamletEagle is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 09-03-2021 , 13:58   Re: FPS Limiter v0.3
Reply With Quote #6

Quote:
Originally Posted by HamletEagle View Post
What does ping(network latency) have to do with fps(how many frames per second your gpu can output)?
yeah you're correct, it doesnt effect the fps but it does effects the forwards that are called depending on the player fps...


so short side story it won't effect it that much.


Quote:
Originally Posted by JocAnis View Post
Players with 100+ ping had issues (false kick) with plugin from dev-cs, i have no idea what you changed from their code/math but it will be better to test, if possible

I don't think the ping has to do with the kicks, they've probably ran some bad plugins...

also the math behind this is not complicated, its so simple and no i didn't change anything in the calculations i only added some fixes and optimizations.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 09-03-2021 at 14:13.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
JocAnis
Veteran Member
Join Date: Jun 2010
Old 09-03-2021 , 16:13   Re: FPS Limiter v0.4
Reply With Quote #7

actually, you are totally right, i confused that ping issue with one module, sorry about that!

good job, i hope this will catch these bastards!
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 09-04-2021 , 09:27   Re: FPS Limiter v0.4
Reply With Quote #8

Quote:
Originally Posted by JocAnis View Post
actually, you are totally right, i confused that ping issue with one module, sorry about that!

good job, i hope this will catch these bastards!
Thanks it sure will...
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
yuusuke
Junior Member
Join Date: Jul 2020
Old 09-08-2021 , 02:59   Re: FPS Limiter v0.4
Reply With Quote #9

I think fps_max 100+ is ok, but when fps_override 1 and cl_cmdrate is over 105, server will receive lots of packets from clients. High cl_cmdrate cause high traffic due to fps_override is enable.
e.g.
fps_max 300, cl_cmdrate 300, fps_override 1 = client sending 300 p/s
fps_max 300, cl_cmdrate 300, fps_override 0 = client sending 101 p/s
fps_max 300, cl_cmdrate 101, fps_override 1 = client sending 101 p/s
fps_max 100, cl_cmdrate 300, fps_override 1 = client sending 101 p/s

Last edited by yuusuke; 09-08-2021 at 03:05.
yuusuke is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 09-08-2021 , 05:17   Re: FPS Limiter v0.4
Reply With Quote #10

Quote:
Originally Posted by yuusuke View Post
I think fps_max 100+ is ok, but when fps_override 1 and cl_cmdrate is over 105, server will receive lots of packets from clients. High cl_cmdrate cause high traffic due to fps_override is enable.
e.g.
fps_max 300, cl_cmdrate 300, fps_override 1 = client sending 300 p/s
fps_max 300, cl_cmdrate 300, fps_override 0 = client sending 101 p/s
fps_max 300, cl_cmdrate 101, fps_override 1 = client sending 101 p/s
fps_max 100, cl_cmdrate 300, fps_override 1 = client sending 101 p/s
sv_maxcmdrate 101
sv_mincmdrate 101

Limit the cmd rate then.

Not sure how is this related to limit the fps.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 09-08-2021 at 05:19.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:59.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode