git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1677 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-02-29 18:36:56 +00:00
parent 3e3f79e9d1
commit 39b6d400c2
+2 -1
View File
@@ -291,10 +291,11 @@ void resetgl()
COMMAND(resetgl, ARG_NONE);
VARP(maxfps, 5, 200, 500);
VARP(maxfps, 0, 200, 500);
void limitfps(int &millis, int curmillis)
{
if(!maxfps) return;
static int fpserror = 0;
int delay = 1000/maxfps - (millis-curmillis);
if(delay < 0) fpserror = 0;