summaryrefslogtreecommitdiff
path: root/menus.h
diff options
context:
space:
mode:
authorGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-04-03 03:19:21 +0000
committerGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-04-03 03:19:21 +0000
commitd812e93dec4bcb81c2b5226b14c54dacf4fb860d (patch)
treea7758c924c669b794330987f3387d471eadb5ca2 /menus.h
parent85923eb8a5d3f070618c3d6f94bea715c11a4227 (diff)
downloadbullet-lab-remix-d812e93dec4bcb81c2b5226b14c54dacf4fb860d.tar.xz
Remove "high FPS mode", it won't reach 500 FPS on my computer any
more. Replace it with Vsync mode. Add float HGE::Timer_GetFPSf(). The return value will be updated every 1000ms.
Diffstat (limited to 'menus.h')
-rw-r--r--menus.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/menus.h b/menus.h
index 00757cc..f42ae34 100644
--- a/menus.h
+++ b/menus.h
@@ -647,9 +647,9 @@ void OptionsGUI_Init()
OptionsGUI->AddCtrl(new hgeGUIMenuItem(1,fnt,snd,400,200,0.0f,opt[0]));
switch (fpslvl)
{
- case 0:sprintf(opt[1],"FPS Level: Natural");break;
- case 1:sprintf(opt[1],"FPS Level: Low FPS");break;
- case 2:sprintf(opt[1],"FPS Level: Highest");break;
+ case 0:sprintf(opt[1],"FPS Level: 60");break;
+ case 1:sprintf(opt[1],"FPS Level: ?");break;
+ case 2:sprintf(opt[1],"FPS Level: Vsync");break;
}
OptionsGUI->AddCtrl(new hgeGUIMenuItem(2,fnt,snd,400,240,0.1f,opt[1]));
if (diffkey)
@@ -781,7 +781,7 @@ void OptionsGUI_FrameFnk()
switch (fpslvl)
{
case 0:
- fpslvl=1;LOWFPS=true;
+ fpslvl=2;LOWFPS=true;
hge->System_SetState(HGE_FPS,61);
TenSeconds=600;
TwentySeconds=1200;
@@ -790,29 +790,29 @@ void OptionsGUI_FrameFnk()
if(fFast)TenSeconds/=2,TwentySeconds/=2,ThirtySeconds/=2,AMinute/=2;
break;
case 1:
- fpslvl=2;LOWFPS=false;
+ /*fpslvl=2;LOWFPS=false;
hge->System_SetState(HGE_FPS,1000);
TenSeconds=10000;
TwentySeconds=20000;
ThirtySeconds=30000;
AMinute=60000;
if(fFast)TenSeconds/=2,TwentySeconds/=2,ThirtySeconds/=2,AMinute/=2;
- break;
+ break;*/
case 2:
- fpslvl=0;LOWFPS=false;
- hge->System_SetState(HGE_FPS,0);
- TenSeconds=10000;
- TwentySeconds=20000;
- ThirtySeconds=30000;
- AMinute=60000;
+ fpslvl=0;LOWFPS=true;
+ hge->System_SetState(HGE_FPS,HGEFPS_VSYNC);
+ TenSeconds=600;
+ TwentySeconds=1200;
+ ThirtySeconds=1800;
+ AMinute=3600;
if(fFast)TenSeconds/=2,TwentySeconds/=2,ThirtySeconds/=2,AMinute/=2;
break;
}
switch (fpslvl)
{
- case 0:sprintf(opt[1],"FPS Level: Natural");break;
- case 1:sprintf(opt[1],"FPS Level: Low FPS");break;
- case 2:sprintf(opt[1],"FPS Level: Highest");break;
+ case 0:sprintf(opt[1],"FPS Level: 60");break;
+ case 1:sprintf(opt[1],"FPS Level: ?");break;
+ case 2:sprintf(opt[1],"FPS Level: Vsync");break;
}
((hgeGUIMenuItem*)OptionsGUI->GetCtrl(2))->RePos(400,240);
break;