SRCDS Steam group


how to lock FPS_MAX value
#1
Hi!

well, my question is simple, i want to lock the fps_max value to 250, so people cant change it from console or sm_cvar fps_max "600" for example.

How can i do this? i have +fps_max 250 in the launch line but with sm_cvar fps_max 600, it changes to 500 FPS.


Thanks in advance!
Reply
#2
+fps_max 250 +alias fps_max echo "Disabled"
http://leaf.dragonflybsd.org/~gary

“The two most common elements in the universe are hydrogen and stupidity.”








Reply
#3
(07-01-2010, 10:13 AM)Monk Wrote:  +fps_max 250 +alias fps_max echo "Disabled"

thanks for your answer, but it doesnt work:

Quote:21:31:31 stats
21:31:31 CPU In Out Uptime Users FPS Players
0.00 0.00 0.00 0 0 233.97 0

21:32:11 sm_cvar fps_max 600
21:32:11 [SM] Changed cvar "fps_max" to "600".
21:32:11 L 06/30/2010 - 21:42:00: [basecommands.smx] "Console<0><Console><Console>" changed cvar (cvar "fps_max") (value "600")

21:32:20 stats
21:32:20 CPU In Out Uptime Users FPS Players
0.00 0.00 0.00 1 0 464.04 0



am i doing something wrong?
Reply
#4
Not sure what sm_cvar is, you may wish to disable that as well..
http://leaf.dragonflybsd.org/~gary

“The two most common elements in the universe are hydrogen and stupidity.”








Reply
#5
fps_max is both a client-side cvar and a server-side cvar -- and it is not replicated -- so the client and server can have different values for it.

My understanding is that the server-side cvar controls the number of operations per second that are permitted -- see fpsmeter.org for a great resource.

The client-side cvar controls how many times you will recompute the image to be displayed on the screen -- more often than not, are you actually limited by your monitor's refresh rate rather than the game's FPS.

If you want to set your server's fps_max, you can set it in the command line or server.cfg file -- or by rcon. But this will not have any affect on what clients are able to set their fps_max to.

As far as I know there is no way to place a limit on the client's fps_max.
Reply
#6
There isnt'.
http://leaf.dragonflybsd.org/~gary

“The two most common elements in the universe are hydrogen and stupidity.”








Reply
#7
still you can probably write a plugin and change the value of the (server-side) cvar fps_max even if you have overwritten the command with the alias. so afaik there is no real protection against changing the fps_max cvar... you will have to limit the server fps by other means (e.g. try the BEpingboost library from my wiki and set the FPS there to 250 - not sure if that works but worse a try).
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#8
put the sm_carv for the fps to 250 like go into the sm_carv
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)