From d0f9993385ec27b69ef9573c3b157e41c6d7d99a Mon Sep 17 00:00:00 2001 From: alufolie91 Date: Mon, 27 Nov 2023 06:09:02 +0100 Subject: [PATCH] add more stuff to experimental video menu + smol cleanup might aswell add the other things --- src/m_menu.c | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/src/m_menu.c b/src/m_menu.c index 22be3f8e7..d22d29494 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -1431,17 +1431,21 @@ static menuitem_t OP_VideoModeMenu[] = static menuitem_t OP_ExpOptionsMenu[] = { {IT_HEADER, NULL, "Experimental Options", NULL, 10}, - {IT_STRING | IT_CVAR, NULL, "Weather Interpolation", &cv_precipinterp, 45}, - {IT_STRING | IT_CVAR, NULL, "Less Weather Effects", &cv_lessprecip, 55}, + {IT_STRING | IT_CVAR, NULL, "Weather Interpolation", &cv_precipinterp, 35}, + {IT_STRING | IT_CVAR, NULL, "Less Weather Effects", &cv_lessprecip, 45}, - {IT_STRING | IT_CVAR, NULL, "VHS effect", &cv_vhseffect, 75}, + {IT_STRING | IT_CVAR, NULL, "VHS effect", &cv_vhseffect, 65}, + + {IT_STRING | IT_CVAR, NULL, "FFloorclip", &cv_ffloorclip, 85}, + {IT_STRING | IT_CVAR, NULL, "Spriteclip", &cv_spriteclip, 95}, #ifdef HWRENDER - {IT_STRING | IT_CVAR, NULL, "Screen Textures", &cv_grscreentextures, 75}, - {IT_STRING | IT_CVAR, NULL, "VHS effect", &cv_grvhseffect, 85}, + {IT_STRING | IT_CVAR, NULL, "Screen Textures", &cv_grscreentextures, 65}, + {IT_STRING | IT_CVAR, NULL, "VHS effect", &cv_grvhseffect, 75}, - {IT_STRING | IT_CVAR, NULL, "Splitwall/Slope texture fix", &cv_splitwallfix, 105}, - {IT_STRING | IT_CVAR, NULL, "Slope midtexture peg fix", &cv_slopepegfix, 115}, - {IT_STRING | IT_CVAR, NULL, "ZFighting fix for fofs", &cv_fofzfightfix, 125}, + {IT_STRING | IT_CVAR, NULL, "Splitwall/Slope texture fix", &cv_splitwallfix, 95}, + {IT_STRING | IT_CVAR, NULL, "Slope midtexture peg fix", &cv_slopepegfix, 105}, + {IT_STRING | IT_CVAR, NULL, "ZFighting fix for fofs", &cv_fofzfightfix, 115}, + {IT_STRING | IT_CVAR, NULL, "FOF wall cutoff for slopes", &cv_grfofcut, 125}, #endif }; @@ -1451,12 +1455,15 @@ static const char* OP_ExpTooltips[] = "Should weather be interpolated? Weather should look about the\nsame but perform a bit better when disabled.", "When weather is on this will cut the object amount used in half.", "Show a VHS-like effect when the game is paused or youre rewinding replays.", + "Hides 3DFloors which are not visible\npotentially resulting in a performance boost.", + "Hides Sprites which are not visible\npotentially resulting in a performance boost.", #ifdef HWRENDER "Should the game do Screen Textures? Provides a good boost to frames\nat the cost of some visual effects not working when disabled.", "Show a VHS-like effect when the game is paused or youre rewinding replays.", "Fixes issues that resulted in Textures sticking from the ground sometimes.\n This may be CPU heavy and result in worse performance in some cases.", "Fixes issues that resulted in Textures not being properly skewed\n example: Fences on slopes that didnt show proper.\n This may be CPU heavy and result in worse performance in some cases.", "Fixes issues that resulted in Textures on Floor over Floors ZFighting heavily.", + "Toggle for FOF wall cutoff when slopes.", #endif }; @@ -1466,12 +1473,15 @@ enum op_exp_precipinter, op_exp_lessprecip, op_exp_vhs, + op_exp_ffclip, + op_exp_sprclip, #ifdef HWRENDER op_exp_grscrtx, op_exp_grvhs, op_exp_spltwal, op_exp_pegging, op_exp_fofzfight, + op_exp_fofcut, #endif }; @@ -4364,10 +4374,14 @@ void M_Init(void) OP_ExpOptionsMenu[op_exp_spltwal].status = IT_DISABLED; OP_ExpOptionsMenu[op_exp_pegging].status = IT_DISABLED; OP_ExpOptionsMenu[op_exp_fofzfight].status = IT_DISABLED; + OP_ExpOptionsMenu[op_exp_fofcut].status = IT_DISABLED; } - if (rendermode == render_opengl) + if (rendermode == render_opengl){ OP_ExpOptionsMenu[op_exp_vhs].status = IT_DISABLED; + OP_ExpOptionsMenu[op_exp_ffclip].status = IT_DISABLED; + OP_ExpOptionsMenu[op_exp_sprclip].status = IT_DISABLED; + } #endif if (!snw_speedo && !kartzspeedo) // why bother?