mirror of
https://github.com/nzp-team/glquake.git
synced 2024-11-10 06:31:35 +00:00
Default FPS cap to 60 on N3ds
This commit is contained in:
parent
1ee92c9b34
commit
23ad624ec5
1 changed files with 10 additions and 1 deletions
|
@ -56,7 +56,7 @@ byte *host_colormap;
|
|||
|
||||
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_maxfps = {"host_maxfps", "30"};
|
||||
cvar_t host_maxfps = {"host_maxfps", "500"};
|
||||
|
||||
cvar_t sys_ticrate = {"sys_ticrate","0.05"};
|
||||
cvar_t serverprofile = {"serverprofile","0"};
|
||||
|
@ -217,6 +217,7 @@ void Host_FindMaxClients (void)
|
|||
Host_InitLocal
|
||||
======================
|
||||
*/
|
||||
extern bool new3ds_flag;
|
||||
void Host_InitLocal (void)
|
||||
{
|
||||
Host_InitCommands ();
|
||||
|
@ -225,6 +226,14 @@ void Host_InitLocal (void)
|
|||
Cvar_RegisterVariable (&host_speeds);
|
||||
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 (&serverprofile);
|
||||
|
||||
|
|
Loading…
Reference in a new issue