Back to the Vavoom Forum Archives


Forum

Patch for option to uncapping framerate

Tue, 16 Mar 2010 20:42:45

Firebrand

I've added the option to cap the framerate to the video options instead of the show FPS counter option, since that one is better just for debugging the engine.
Index: progs/common/uibase/MenuScreenVideoOptions.vc
===================================================================
--- progs/common/uibase/MenuScreenVideoOptions.vc	(revision 4173)
+++ progs/common/uibase/MenuScreenVideoOptions.vc	(working copy)
@@ -124,9 +124,9 @@
 
 	Enum = MenuChoiceEnum(NewChild(MenuChoice_OnOff));
 	Enum.SetOrigin(ChoicesStartX, currentY);
-	Enum.Text = "FPS Counter";
-	Enum.SetInitialValue(GetCvar('draw_fps'));
-	Enum.ValueChanging = ChangeDrawFps;
+	Enum.Text = "Use Uncapped Framerate";
+	Enum.SetInitialValue(GetCvar('real_time'));
+	Enum.ValueChanging = ChangeCapFps;
 	currentY += Enum.Height;
 
 	Btn = MenuTextButton(NewChild(MenuSmallTextButton));
@@ -257,13 +257,13 @@
 
 //==========================================================================
 //
-//	ChangeDrawFps
+//	ChangeCapFps
 //
 //==========================================================================
 
-bool ChangeDrawFps(Object Sender, int newValue)
+bool ChangeCapFps(Object Sender, int newValue)
 {
-	SetCvar('draw_fps', newValue);
+	SetCvar('real_time', newValue);
 	return true;
 }
 
Index: source/sv_main.cpp
===================================================================
--- source/sv_main.cpp	(revision 4173)
+++ source/sv_main.cpp	(working copy)
@@ -47,7 +47,7 @@
 
 // PUBLIC DATA DEFINITIONS -------------------------------------------------
 
-VCvarI			real_time("real_time", "1");
+VCvarI			real_time("real_time", "1", CVAR_Archive);
 
 server_t		sv;
 server_static_t	svs;
Index: source/timidity/playmidi.cpp
===================================================================
--- source/timidity/playmidi.cpp	(revision 4173)
+++ source/timidity/playmidi.cpp	(working copy)
@@ -246,7 +246,6 @@
 	Instrument *ip;
 	int j, banknum, ch=e->channel;
 	int played_note;
-	int32 rt;
 	int this_note = e->a;
 	int this_velocity = e->b;
 	int this_prog = song->channel[ch].program;
I would also like to ask about the Timidity player for Vavoom, does it support SF2 files?
Wed, 17 Mar 2010 17:54:01

Janis Legzdinsh

[quote="Firebrand":10k5yozx]I've added the option to cap the framerate to the video options instead of the show FPS counter option, since that one is better just for debugging the engine. No, real_time has nothing to do with video frame rate and users should not change it.
I would also like to ask about the Timidity player for Vavoom, does it support SF2 files?
Not yet. Hopefully soon.

Back to the Vavoom Forum Archives