aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneonloop2021-03-14 20:01:09 +0000
committerneonloop2021-03-14 20:01:09 +0000
commit0b445ea17f09c582a9d0214c3c1a9540dc2a0cab (patch)
tree000fde8646874ad5e2ace23147c0841b0c84e3b4
parentcc67e49563096e4367881e8bbe4554f1a7d21595 (diff)
downloadpcsx_rearmed-0b445ea17f09c582a9d0214c3c1a9540dc2a0cab.tar.gz
pcsx_rearmed-0b445ea17f09c582a9d0214c3c1a9540dc2a0cab.tar.bz2
pcsx_rearmed-0b445ea17f09c582a9d0214c3c1a9540dc2a0cab.zip
Better default config for trimui
-rw-r--r--frontend/main.c8
-rw-r--r--frontend/menu.c13
2 files changed, 16 insertions, 5 deletions
diff --git a/frontend/main.c b/frontend/main.c
index 0266992..e2b00d6 100644
--- a/frontend/main.c
+++ b/frontend/main.c
@@ -128,6 +128,7 @@ void emu_set_default_config(void)
Config.SpuIrq = Config.RCntFix = Config.VSyncWA = 0;
Config.PsxAuto = 1;
+ pl_rearmed_cbs.frameskip_type = 0;
pl_rearmed_cbs.thread_rendering = 0;
pl_rearmed_cbs.gpu_neon.allow_interlace = 2; // auto
@@ -165,6 +166,13 @@ void emu_set_default_config(void)
new_dynarec_hacks = 0;
cycle_multiplier = 200;
+#ifdef TRIMUI
+ pl_rearmed_cbs.gpu_unai.scale_hires = 1;
+ pl_rearmed_cbs.frameskip_type = 1; // audio-based
+ spu_config.iTempo = 0;
+ cycle_multiplier = 175;
+#endif
+
in_type[0] = PSE_PAD_TYPE_STANDARD;
in_type[1] = PSE_PAD_TYPE_STANDARD;
}
diff --git a/frontend/menu.c b/frontend/menu.c
index 52e6b98..2196258 100644
--- a/frontend/menu.c
+++ b/frontend/menu.c
@@ -93,7 +93,7 @@ typedef enum
} menu_id;
static int last_vout_w, last_vout_h, last_vout_bpp;
-static int cpu_clock, cpu_clock_st, volume_boost, frameskip, frameskip_type;
+static int cpu_clock, cpu_clock_st, volume_boost, frameskip;
static char last_selected_fname[MAXPATHLEN];
static int config_save_counter, region, in_type_sel1, in_type_sel2;
static int psx_clock;
@@ -104,10 +104,15 @@ int scanlines, scanline_level = 20;
int soft_scaling, analog_deadzone; // for Caanoo
int soft_filter;
+#ifdef TRIMUI
+#define DEFAULT_PSX_CLOCK 57
+#define DEFAULT_PSX_CLOCK_S "57"
+#else
// Default to 100% CPU speed as most hardware can handle it nowadays using the dynamic recompiler.
// If not, the option is in the advanced speed hacks menu, so in a logical place.
#define DEFAULT_PSX_CLOCK 100
#define DEFAULT_PSX_CLOCK_S "100"
+#endif
static const char *bioses[24];
static const char *gpu_plugins[16];
@@ -325,7 +330,6 @@ static void menu_sync_config(void)
spu_config.iVolume = 768 + 128 * volume_boost;
pl_rearmed_cbs.frameskip = frameskip - 1;
- pl_rearmed_cbs.frameskip_type = frameskip_type;
pl_timing_prepare(Config.PsxType);
}
@@ -338,7 +342,6 @@ static void menu_set_defconfig(void)
g_gamma = 100;
volume_boost = 0;
frameskip = 0;
- frameskip_type = 0;
analog_deadzone = 50;
soft_scaling = 1;
soft_filter = 0;
@@ -426,7 +429,7 @@ static const struct {
CE_INTVAL_N("adev0_is_nublike", in_adev_is_nublike[0]),
CE_INTVAL_N("adev1_is_nublike", in_adev_is_nublike[1]),
CE_INTVAL_V(frameskip, 3),
- CE_INTVAL(frameskip_type),
+ CE_INTVAL_P(frameskip_type),
CE_INTVAL_P(thread_rendering),
CE_INTVAL_P(gpu_peops.iUseDither),
CE_INTVAL_P(gpu_peops.dwActFixes),
@@ -1629,7 +1632,7 @@ static menu_entry e_menu_options[] =
// mee_range ("Save slot", 0, state_slot, 0, 9),
// mee_enum_h ("Confirm savestate", 0, dummy, men_confirm_save, h_confirm_save),
mee_enum_h ("Frameskip", 0, frameskip, men_frameskip, h_frameskip),
- mee_enum ("Frameskip type", 0, frameskip_type, men_fs_type),
+ mee_enum ("Auto frameskip type", 0, pl_rearmed_cbs.frameskip_type, men_fs_type),
mee_onoff ("Show FPS", 0, g_opts, OPT_SHOWFPS),
mee_enum ("Region", 0, region, men_region),
mee_range ("CPU clock", MA_OPT_CPU_CLOCKS, cpu_clock, 20, 5000),