mirror of https://github.com/nzp-team/glquake.git
Default FPS cap to 60 on N3ds
This commit is contained in:
parent
1ee92c9b34
commit
23ad624ec5
|
@ -56,7 +56,7 @@ byte *host_colormap;
|
||||||
|
|
||||||
cvar_t host_framerate = {"host_framerate","0"}; // set for slow motion
|
cvar_t host_framerate = {"host_framerate","0"}; // set for slow motion
|
||||||
cvar_t host_speeds = {"host_speeds","0"}; // set for running times
|
cvar_t host_speeds = {"host_speeds","0"}; // set for running times
|
||||||
cvar_t host_maxfps = {"host_maxfps", "30"};
|
cvar_t host_maxfps = {"host_maxfps", "500"};
|
||||||
|
|
||||||
cvar_t sys_ticrate = {"sys_ticrate","0.05"};
|
cvar_t sys_ticrate = {"sys_ticrate","0.05"};
|
||||||
cvar_t serverprofile = {"serverprofile","0"};
|
cvar_t serverprofile = {"serverprofile","0"};
|
||||||
|
@ -217,6 +217,7 @@ void Host_FindMaxClients (void)
|
||||||
Host_InitLocal
|
Host_InitLocal
|
||||||
======================
|
======================
|
||||||
*/
|
*/
|
||||||
|
extern bool new3ds_flag;
|
||||||
void Host_InitLocal (void)
|
void Host_InitLocal (void)
|
||||||
{
|
{
|
||||||
Host_InitCommands ();
|
Host_InitCommands ();
|
||||||
|
@ -225,6 +226,14 @@ void Host_InitLocal (void)
|
||||||
Cvar_RegisterVariable (&host_speeds);
|
Cvar_RegisterVariable (&host_speeds);
|
||||||
Cvar_RegisterVariable (&host_maxfps);
|
Cvar_RegisterVariable (&host_maxfps);
|
||||||
|
|
||||||
|
if (host_maxfps.value == 500) {
|
||||||
|
if (new3ds_flag) {
|
||||||
|
Cvar_SetValue("host_maxfps", 60);
|
||||||
|
} else {
|
||||||
|
Cvar_SetValue("host_maxfps", 30);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Cvar_RegisterVariable (&sys_ticrate);
|
Cvar_RegisterVariable (&sys_ticrate);
|
||||||
Cvar_RegisterVariable (&serverprofile);
|
Cvar_RegisterVariable (&serverprofile);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue