Skip to content

Commit

Permalink
gpu_neon: enable tex hack by default
Browse files Browse the repository at this point in the history
  • Loading branch information
notaz committed Aug 22, 2024
1 parent ee060c5 commit f0ca3e2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion frontend/libretro.c
Original file line number Diff line number Diff line change
Expand Up @@ -2453,7 +2453,7 @@ static void update_variables(bool in_flight)
}

var.value = NULL;
var.key = "pcsx_rearmed_neon_enhancement_tex_adj";
var.key = "pcsx_rearmed_neon_enhancement_tex_adj_v2";

if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
{
Expand Down
6 changes: 3 additions & 3 deletions frontend/libretro_core_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -558,18 +558,18 @@ struct retro_core_option_v2_definition option_defs_us[] = {
"disabled",
},
{
"pcsx_rearmed_neon_enhancement_tex_adj",
"pcsx_rearmed_neon_enhancement_tex_adj_v2",
"(GPU) Enhanced Resolution Texture Adjustment",
"Enhanced Resolution Texture Adjustment",
"('Enhanced Resolution' Hack) Attempts to solve some texturing issues in some games, but causes new ones in others.",
"('Enhanced Resolution' Hack) Solves some texturing issues in some games in Enhanced Resolution mode. May cause a small performance hit.",
NULL,
"gpu_neon",
{
{ "disabled", NULL },
{ "enabled", NULL },
{ NULL, NULL },
},
"disabled",
"enabled",
},
#endif /* GPU_NEON */
#ifdef GPU_PEOPS
Expand Down
1 change: 1 addition & 0 deletions frontend/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ void emu_set_default_config(void)
pl_rearmed_cbs.gpu_neon.allow_interlace = 2; // auto
pl_rearmed_cbs.gpu_neon.enhancement_enable =
pl_rearmed_cbs.gpu_neon.enhancement_no_main = 0;
pl_rearmed_cbs.gpu_neon.enhancement_tex_adj = 1;
pl_rearmed_cbs.gpu_peops.iUseDither = 0;
pl_rearmed_cbs.gpu_peops.dwActFixes = 1<<7;
pl_rearmed_cbs.gpu_unai.ilace_force = 0;
Expand Down
8 changes: 5 additions & 3 deletions frontend/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ static const struct {
CE_INTVAL_P(gpu_neon.allow_interlace),
CE_INTVAL_P(gpu_neon.enhancement_enable),
CE_INTVAL_P(gpu_neon.enhancement_no_main),
CE_INTVAL_P(gpu_neon.enhancement_tex_adj),
CE_INTVAL_PV(gpu_neon.enhancement_tex_adj, 2),
CE_INTVAL_P(gpu_peopsgl.bDrawDither),
CE_INTVAL_P(gpu_peopsgl.iFilterType),
CE_INTVAL_P(gpu_peopsgl.iFrameTexType),
Expand Down Expand Up @@ -1411,18 +1411,20 @@ static int menu_loop_gfx_options(int id, int keys)
static const char h_gpu_neon[] =
"Configure built-in NEON GPU plugin";
static const char h_gpu_neon_enhanced[] =
"Renders in double resolution at the cost of lower performance\n"
"Renders in double resolution at perf. cost\n"
"(not available for high resolution games)";
static const char h_gpu_neon_enhanced_hack[] =
"Speed hack for above option (glitches some games)";
static const char h_gpu_neon_enhanced_texadj[] =
"Solves some Enh. res. texture issues, some perf hit";
static const char *men_gpu_interlace[] = { "Off", "On", "Auto", NULL };

static menu_entry e_menu_plugin_gpu_neon[] =
{
mee_enum ("Enable interlace mode", 0, pl_rearmed_cbs.gpu_neon.allow_interlace, men_gpu_interlace),
mee_onoff_h ("Enhanced resolution", 0, pl_rearmed_cbs.gpu_neon.enhancement_enable, 1, h_gpu_neon_enhanced),
mee_onoff_h ("Enhanced res. speed hack", 0, pl_rearmed_cbs.gpu_neon.enhancement_no_main, 1, h_gpu_neon_enhanced_hack),
mee_onoff ("Enh. res. texture adjust", 0, pl_rearmed_cbs.gpu_neon.enhancement_tex_adj, 1),
mee_onoff_h ("Enh. res. texture adjust", 0, pl_rearmed_cbs.gpu_neon.enhancement_tex_adj, 1, h_gpu_neon_enhanced_texadj),
mee_end,
};

Expand Down

0 comments on commit f0ca3e2

Please sign in to comment.