min maxfps = 25
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6533 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+1
-1
@@ -336,7 +336,7 @@ docremark [You should never have to use this command manually, use "bind" instea
|
||||
docident [left] [Moves the player left.];
|
||||
docremark [default keys: A and Left Arrow];
|
||||
docident [maxfps] [Limits the FPS (frames per second) of the game.];
|
||||
docargument [V] [maximum FPS] [min 0/max 200/default 200];
|
||||
docargument [V] [maximum FPS] [min 25/max 200/default 200];
|
||||
docident [maxroll] [Sets the maximum value the display will roll on strafing.];
|
||||
docargument [N] [the roll value] [min 0/max 20/default 0];
|
||||
docident [maxtmus] [Gets the maximum number of supported textures when performing multitexturing.];
|
||||
|
||||
+1
-1
@@ -1663,7 +1663,7 @@ echo foo
|
||||
|
||||
<variable name="maxfps">
|
||||
<description>Limits the FPS (frames per second) of the game.</description>
|
||||
<value token="V" description="maximum FPS" minValue="0" maxValue="200" defaultValue="200"/>
|
||||
<value token="V" description="maximum FPS" minValue="25 or 0" maxValue="200" defaultValue="200" valueNotes="0 disables maxfps"/>
|
||||
</variable>
|
||||
|
||||
<variable name="maxtmus">
|
||||
|
||||
+1
-1
@@ -677,7 +677,7 @@ void resetgl()
|
||||
|
||||
COMMAND(resetgl, ARG_NONE);
|
||||
|
||||
VARP(maxfps, 0, 200, 1000);
|
||||
VARFP(maxfps, 0, 200, 1000, if(maxfps && maxfps < 25) maxfps = 25);
|
||||
|
||||
void limitfps(int &millis, int curmillis)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user