mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-01-19 23:11:05 +00:00
Added scr_turtlefps - sets the framerate that the engine has to maintain in order for the turtle to hibernate. Because... why not?
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3312 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
b2b371f44b
commit
d119e7fadb
2 changed files with 4 additions and 1 deletions
|
@ -167,6 +167,7 @@ extern cvar_t scr_fov;
|
|||
extern cvar_t scr_conspeed;
|
||||
extern cvar_t scr_centertime;
|
||||
extern cvar_t scr_showturtle;
|
||||
extern cvar_t scr_turtlefps;
|
||||
extern cvar_t scr_showpause;
|
||||
extern cvar_t scr_printspeed;
|
||||
extern cvar_t scr_allowsnap;
|
||||
|
@ -1095,7 +1096,7 @@ void SCR_DrawTurtle (void)
|
|||
if (!scr_showturtle.value || !scr_turtle)
|
||||
return;
|
||||
|
||||
if (host_frametime < 0.1)
|
||||
if (host_frametime <= 1.0/scr_turtlefps.value)
|
||||
{
|
||||
count = 0;
|
||||
return;
|
||||
|
|
|
@ -151,6 +151,7 @@ cvar_t scr_fov = SCVARFC("fov", "90",
|
|||
cvar_t scr_printspeed = SCVAR ("scr_printspeed", "8");
|
||||
cvar_t scr_showpause = SCVAR ("showpause", "1");
|
||||
cvar_t scr_showturtle = SCVAR ("showturtle", "0");
|
||||
cvar_t scr_turtlefps = SCVAR ("scr_turtlefps", "10");
|
||||
cvar_t scr_sshot_compression = SCVAR ("scr_sshot_compression", "75");
|
||||
cvar_t scr_sshot_type = SCVAR ("scr_sshot_type", "jpg");
|
||||
cvar_t scr_viewsize = SCVARFC("viewsize", "100",
|
||||
|
@ -574,6 +575,7 @@ void Renderer_Init(void)
|
|||
Cvar_Register (&scr_conspeed, SCREENOPTIONS);
|
||||
Cvar_Register (&scr_conalpha, SCREENOPTIONS);
|
||||
Cvar_Register (&scr_showturtle, SCREENOPTIONS);
|
||||
Cvar_Register (&scr_turtlefps, SCREENOPTIONS);
|
||||
Cvar_Register (&scr_showpause, SCREENOPTIONS);
|
||||
Cvar_Register (&scr_centertime, SCREENOPTIONS);
|
||||
Cvar_Register (&scr_printspeed, SCREENOPTIONS);
|
||||
|
|
Loading…
Reference in a new issue