mirror of
https://github.com/blendogames/thirtyflightsofloving.git
synced 2024-11-15 00:41:21 +00:00
Added support for 160 and 240 Hz refresh rates.
This commit is contained in:
parent
8ac9e3c693
commit
31b164ca9d
3 changed files with 16 additions and 2 deletions
|
@ -4,6 +4,8 @@ Changes as of v0.20 update 8:
|
|||
|
||||
- Added 3840x1600 and 4096x2160 video modes.
|
||||
|
||||
- Added 160Hz and 240Hz refresh rates.
|
||||
|
||||
- Added support for triple-monitor surround modes via custom resolutions. Monitors must be bound as a single logical display.
|
||||
Keeps all menu/HUD elements on the center screen, set the cvar scr_surroundlayout to 0 to disable this.
|
||||
Cvars scr_surroundleft and scr_surroundright set placement of left and right of center screen.
|
||||
|
|
|
@ -908,7 +908,7 @@ void R_Register (void)
|
|||
r_speeds = Cvar_Get ("r_speeds", "0", 0);
|
||||
r_ignorehwgamma = Cvar_Get ("r_ignorehwgamma", "0", CVAR_ARCHIVE); // hardware gamma
|
||||
r_displayrefresh = Cvar_Get ("r_displayrefresh", "0", CVAR_ARCHIVE); // refresh rate control
|
||||
AssertCvarRange (r_displayrefresh, 0, 150, true);
|
||||
AssertCvarRange (r_displayrefresh, 0, 240, true);
|
||||
|
||||
// lerped dlights on models
|
||||
r_dlights_normal = Cvar_Get("r_dlights_normal", "1", CVAR_ARCHIVE);
|
||||
|
|
|
@ -176,6 +176,12 @@ static void ApplyChanges( void *unused )
|
|||
// Knightmare- refesh rate option
|
||||
switch (s_refresh_box.curvalue)
|
||||
{
|
||||
case 12:
|
||||
Cvar_SetValue ("r_displayrefresh", 240);
|
||||
break;
|
||||
case 11:
|
||||
Cvar_SetValue ("r_displayrefresh", 160);
|
||||
break;
|
||||
case 10:
|
||||
Cvar_SetValue ("r_displayrefresh", 150);
|
||||
break;
|
||||
|
@ -256,7 +262,11 @@ int refresh_box_setval (void)
|
|||
{
|
||||
int refreshVar = (int)Cvar_VariableValue ("r_displayrefresh");
|
||||
|
||||
if (refreshVar == 150)
|
||||
if (refreshVar == 240)
|
||||
return 12;
|
||||
else if (refreshVar == 160)
|
||||
return 11;
|
||||
else if (refreshVar == 150)
|
||||
return 10;
|
||||
else if (refreshVar == 144)
|
||||
return 9;
|
||||
|
@ -380,6 +390,8 @@ void Menu_Video_Init (void)
|
|||
"[120Hz ]",
|
||||
"[144Hz ]",
|
||||
"[150Hz ]",
|
||||
"[160Hz ]",
|
||||
"[240Hz ]",
|
||||
0
|
||||
};
|
||||
static const char *yesno_names[] =
|
||||
|
|
Loading…
Reference in a new issue