Default FPS cap to 60 on N3ds

This commit is contained in:
cypress 2023-07-22 16:05:03 -04:00
parent 1ee92c9b34
commit 23ad624ec5
1 changed files with 10 additions and 1 deletions

View File

@ -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);