AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   FPS Limiter v0.5 (https://forums.alliedmods.net/showthread.php?t=334150)

Natsheh 09-01-2021 16:40

FPS Limiter v0.5
 
2 Attachment(s)
  • 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!

JocAnis 09-03-2021 10:15

Re: FPS Limiter v0.3
 
is this very well tested with players who have higher ping?

Natsheh 09-03-2021 11:17

Re: FPS Limiter v0.3
 
Quote:

Originally Posted by JocAnis (Post 2756862)
is this very well tested with players who have higher ping?


Not really but doesn't players with higher ping mean lower fps?

JocAnis 09-03-2021 13:36

Re: FPS Limiter v0.3
 
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

HamletEagle 09-03-2021 13:52

Re: FPS Limiter v0.3
 
Quote:

Originally Posted by Natsheh (Post 2756865)
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)?

Natsheh 09-03-2021 13:58

Re: FPS Limiter v0.3
 
Quote:

Originally Posted by HamletEagle (Post 2756874)
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 (Post 2756872)
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.

JocAnis 09-03-2021 16:13

Re: FPS Limiter v0.4
 
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!

Natsheh 09-04-2021 09:27

Re: FPS Limiter v0.4
 
Quote:

Originally Posted by JocAnis (Post 2756885)
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...

yuusuke 09-08-2021 02:59

Re: FPS Limiter v0.4
 
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

Natsheh 09-08-2021 05:17

Re: FPS Limiter v0.4
 
Quote:

Originally Posted by yuusuke (Post 2757238)
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.


All times are GMT -4. The time now is 05:34.

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