mirror of https://github.com/PCSX2/pcsx2.git
pcsx2: purge fmv in sw hack (#3806)
* pcsx2: purge fmv in sw hack * gamedb: remove mention of fmv in sw hack
This commit is contained in:
parent
0d1a583144
commit
da3c3a828c
|
@ -68,7 +68,6 @@
|
||||||
-- VIFFIFOHack = 1 // Transformers Armada, Test Drive Unlimited. Fixes slow booting issue.
|
-- VIFFIFOHack = 1 // Transformers Armada, Test Drive Unlimited. Fixes slow booting issue.
|
||||||
-- VIF1StallHack = 1 // SOCOM II HUD and Spy Hunter loading hang.
|
-- VIF1StallHack = 1 // SOCOM II HUD and Spy Hunter loading hang.
|
||||||
-- GIFFIFOHack = 1 // Enables the GIF FIFO. Needed for Wallace & Grommit, Hot Wheels, DJ Hero.
|
-- GIFFIFOHack = 1 // Enables the GIF FIFO. Needed for Wallace & Grommit, Hot Wheels, DJ Hero.
|
||||||
-- FMVinSoftwareHack = 1 // Silent Hill 2-3. Fixes FMVs that are obscured when using hardware rendering by switching to software rendering while an FMV plays.
|
|
||||||
-- ScarfaceIbitHack = 1 // VU I bit Hack avoid constant recompilation (Scarface The World Is Yours).
|
-- ScarfaceIbitHack = 1 // VU I bit Hack avoid constant recompilation (Scarface The World Is Yours).
|
||||||
-- CrashTagTeamRacingIbit = 1 // VU I bit Hack avoid constant recompilation (Crash Tag Team Racing).
|
-- CrashTagTeamRacingIbit = 1 // VU I bit Hack avoid constant recompilation (Crash Tag Team Racing).
|
||||||
-- VU0KickstartHack = 1 // Let VU0 run ahead to fix some timing issues
|
-- VU0KickstartHack = 1 // Let VU0 run ahead to fix some timing issues
|
||||||
|
|
|
@ -52,7 +52,6 @@ enum GamefixId
|
||||||
Fix_VIFFIFO,
|
Fix_VIFFIFO,
|
||||||
Fix_VIF1Stall,
|
Fix_VIF1Stall,
|
||||||
Fix_GIFFIFO,
|
Fix_GIFFIFO,
|
||||||
Fix_FMVinSoftware,
|
|
||||||
Fix_GoemonTlbMiss,
|
Fix_GoemonTlbMiss,
|
||||||
Fix_ScarfaceIbit,
|
Fix_ScarfaceIbit,
|
||||||
Fix_CrashTagTeamIbit,
|
Fix_CrashTagTeamIbit,
|
||||||
|
@ -356,7 +355,6 @@ struct Pcsx2Config
|
||||||
VIFFIFOHack : 1, // Pretends to fill the non-existant VIF FIFO Buffer.
|
VIFFIFOHack : 1, // Pretends to fill the non-existant VIF FIFO Buffer.
|
||||||
VIF1StallHack : 1, // Like above, processes FIFO data before the stall is allowed (to make sure data goes over).
|
VIF1StallHack : 1, // Like above, processes FIFO data before the stall is allowed (to make sure data goes over).
|
||||||
GIFFIFOHack : 1, // Enabled the GIF FIFO (more correct but slower)
|
GIFFIFOHack : 1, // Enabled the GIF FIFO (more correct but slower)
|
||||||
FMVinSoftwareHack : 1, // Toggle in and out of software rendering when an FMV runs.
|
|
||||||
GoemonTlbHack : 1, // Gomeon tlb miss hack. The game need to access unmapped virtual address. Instead to handle it as exception, tlb are preloaded at startup
|
GoemonTlbHack : 1, // Gomeon tlb miss hack. The game need to access unmapped virtual address. Instead to handle it as exception, tlb are preloaded at startup
|
||||||
ScarfaceIbit : 1, // Scarface I bit hack. Needed to stop constant VU recompilation
|
ScarfaceIbit : 1, // Scarface I bit hack. Needed to stop constant VU recompilation
|
||||||
CrashTagTeamRacingIbit : 1, // Crash Tag Team Racing I bit hack. Needed to stop constant VU recompilation
|
CrashTagTeamRacingIbit : 1, // Crash Tag Team Racing I bit hack. Needed to stop constant VU recompilation
|
||||||
|
@ -546,7 +544,7 @@ TraceLogFilters& SetTraceConfig();
|
||||||
#define CHECK_VIFFIFOHACK (EmuConfig.Gamefixes.VIFFIFOHack) // Pretends to fill the non-existant VIF FIFO Buffer.
|
#define CHECK_VIFFIFOHACK (EmuConfig.Gamefixes.VIFFIFOHack) // Pretends to fill the non-existant VIF FIFO Buffer.
|
||||||
#define CHECK_VIF1STALLHACK (EmuConfig.Gamefixes.VIF1StallHack) // Like above, processes FIFO data before the stall is allowed (to make sure data goes over).
|
#define CHECK_VIF1STALLHACK (EmuConfig.Gamefixes.VIF1StallHack) // Like above, processes FIFO data before the stall is allowed (to make sure data goes over).
|
||||||
#define CHECK_GIFFIFOHACK (EmuConfig.Gamefixes.GIFFIFOHack) // Enabled the GIF FIFO (more correct but slower)
|
#define CHECK_GIFFIFOHACK (EmuConfig.Gamefixes.GIFFIFOHack) // Enabled the GIF FIFO (more correct but slower)
|
||||||
#define CHECK_FMVINSOFTWAREHACK (EmuConfig.Gamefixes.FMVinSoftwareHack) // Toggle in and out of software rendering when an FMV runs.
|
|
||||||
//------------ Advanced Options!!! ---------------
|
//------------ Advanced Options!!! ---------------
|
||||||
#define CHECK_VU_OVERFLOW (EmuConfig.Cpu.Recompiler.vuOverflow)
|
#define CHECK_VU_OVERFLOW (EmuConfig.Cpu.Recompiler.vuOverflow)
|
||||||
#define CHECK_VU_EXTRA_OVERFLOW (EmuConfig.Cpu.Recompiler.vuExtraOverflow) // If enabled, Operands are clamped before being used in the VU recs
|
#define CHECK_VU_EXTRA_OVERFLOW (EmuConfig.Cpu.Recompiler.vuExtraOverflow) // If enabled, Operands are clamped before being used in the VU recs
|
||||||
|
|
|
@ -409,7 +409,7 @@ static __ri void ipuBDEC(tIPU_CMD_BDEC bdec)
|
||||||
|
|
||||||
static __fi bool ipuVDEC(u32 val)
|
static __fi bool ipuVDEC(u32 val)
|
||||||
{
|
{
|
||||||
if (EmuConfig.Gamefixes.FMVinSoftwareHack || g_Conf->GSWindow.FMVAspectRatioSwitch != FMV_AspectRatio_Switch_Off) {
|
if (g_Conf->GSWindow.FMVAspectRatioSwitch != FMV_AspectRatio_Switch_Off) {
|
||||||
static int count = 0;
|
static int count = 0;
|
||||||
if (count++ > 5) {
|
if (count++ > 5) {
|
||||||
if (!FMVstarted) {
|
if (!FMVstarted) {
|
||||||
|
|
|
@ -264,7 +264,6 @@ const wxChar *const tbl_GamefixNames[] =
|
||||||
L"VIFFIFO",
|
L"VIFFIFO",
|
||||||
L"VIF1Stall",
|
L"VIF1Stall",
|
||||||
L"GIFFIFO",
|
L"GIFFIFO",
|
||||||
L"FMVinSoftware",
|
|
||||||
L"GoemonTlb",
|
L"GoemonTlb",
|
||||||
L"ScarfaceIbit",
|
L"ScarfaceIbit",
|
||||||
L"CrashTagTeamRacingIbit",
|
L"CrashTagTeamRacingIbit",
|
||||||
|
@ -328,7 +327,6 @@ void Pcsx2Config::GamefixOptions::Set( GamefixId id, bool enabled )
|
||||||
case Fix_VIFFIFO: VIFFIFOHack = enabled; break;
|
case Fix_VIFFIFO: VIFFIFOHack = enabled; break;
|
||||||
case Fix_VIF1Stall: VIF1StallHack = enabled; break;
|
case Fix_VIF1Stall: VIF1StallHack = enabled; break;
|
||||||
case Fix_GIFFIFO: GIFFIFOHack = enabled; break;
|
case Fix_GIFFIFO: GIFFIFOHack = enabled; break;
|
||||||
case Fix_FMVinSoftware: FMVinSoftwareHack = enabled; break;
|
|
||||||
case Fix_GoemonTlbMiss: GoemonTlbHack = enabled; break;
|
case Fix_GoemonTlbMiss: GoemonTlbHack = enabled; break;
|
||||||
case Fix_ScarfaceIbit: ScarfaceIbit = enabled; break;
|
case Fix_ScarfaceIbit: ScarfaceIbit = enabled; break;
|
||||||
case Fix_CrashTagTeamIbit: CrashTagTeamRacingIbit = enabled; break;
|
case Fix_CrashTagTeamIbit: CrashTagTeamRacingIbit = enabled; break;
|
||||||
|
@ -355,7 +353,6 @@ bool Pcsx2Config::GamefixOptions::Get( GamefixId id ) const
|
||||||
case Fix_VIFFIFO: return VIFFIFOHack;
|
case Fix_VIFFIFO: return VIFFIFOHack;
|
||||||
case Fix_VIF1Stall: return VIF1StallHack;
|
case Fix_VIF1Stall: return VIF1StallHack;
|
||||||
case Fix_GIFFIFO: return GIFFIFOHack;
|
case Fix_GIFFIFO: return GIFFIFOHack;
|
||||||
case Fix_FMVinSoftware: return FMVinSoftwareHack;
|
|
||||||
case Fix_GoemonTlbMiss: return GoemonTlbHack;
|
case Fix_GoemonTlbMiss: return GoemonTlbHack;
|
||||||
case Fix_ScarfaceIbit: return ScarfaceIbit;
|
case Fix_ScarfaceIbit: return ScarfaceIbit;
|
||||||
case Fix_CrashTagTeamIbit: return CrashTagTeamRacingIbit;
|
case Fix_CrashTagTeamIbit: return CrashTagTeamRacingIbit;
|
||||||
|
@ -382,7 +379,6 @@ void Pcsx2Config::GamefixOptions::LoadSave( IniInterface& ini )
|
||||||
IniBitBool( VIFFIFOHack );
|
IniBitBool( VIFFIFOHack );
|
||||||
IniBitBool( VIF1StallHack );
|
IniBitBool( VIF1StallHack );
|
||||||
IniBitBool( GIFFIFOHack );
|
IniBitBool( GIFFIFOHack );
|
||||||
IniBitBool( FMVinSoftwareHack );
|
|
||||||
IniBitBool( GoemonTlbHack );
|
IniBitBool( GoemonTlbHack );
|
||||||
IniBitBool( ScarfaceIbit );
|
IniBitBool( ScarfaceIbit );
|
||||||
IniBitBool( CrashTagTeamRacingIbit );
|
IniBitBool( CrashTagTeamRacingIbit );
|
||||||
|
|
|
@ -534,12 +534,6 @@ void DoFmvSwitch(bool on)
|
||||||
if (GSPanel* viewport = gsFrame->GetViewport())
|
if (GSPanel* viewport = gsFrame->GetViewport())
|
||||||
viewport->DoResize();
|
viewport->DoResize();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (EmuConfig.Gamefixes.FMVinSoftwareHack) {
|
|
||||||
ScopedCoreThreadPause paused_core(new SysExecEvent_SaveSinglePlugin(PluginId_GS));
|
|
||||||
renderswitch = !renderswitch;
|
|
||||||
paused_core.AllowResume();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Pcsx2App::LogicalVsync()
|
void Pcsx2App::LogicalVsync()
|
||||||
|
@ -552,7 +546,7 @@ void Pcsx2App::LogicalVsync()
|
||||||
|
|
||||||
FpsManager.DoFrame();
|
FpsManager.DoFrame();
|
||||||
|
|
||||||
if (EmuConfig.Gamefixes.FMVinSoftwareHack || g_Conf->GSWindow.FMVAspectRatioSwitch != FMV_AspectRatio_Switch_Off) {
|
if (g_Conf->GSWindow.FMVAspectRatioSwitch != FMV_AspectRatio_Switch_Off) {
|
||||||
if (EnableFMV) {
|
if (EnableFMV) {
|
||||||
DevCon.Warning("FMV on");
|
DevCon.Warning("FMV on");
|
||||||
DoFmvSwitch(true);
|
DoFmvSwitch(true);
|
||||||
|
|
|
@ -274,8 +274,6 @@ void GSPanel::DoResize()
|
||||||
zoom = std::max( (float)arr, (float)(1.0/arr) );
|
zoom = std::max( (float)arr, (float)(1.0/arr) );
|
||||||
|
|
||||||
viewport.Scale(zoom, zoom*g_Conf->GSWindow.StretchY.ToFloat()/100.0 );
|
viewport.Scale(zoom, zoom*g_Conf->GSWindow.StretchY.ToFloat()/100.0 );
|
||||||
if (viewport == client && EmuConfig.Gamefixes.FMVinSoftwareHack && g_Conf->GSWindow.IsFullscreen)
|
|
||||||
viewport.x += 1; //avoids crash on some systems switching HW><SW in fullscreen aspect ratio's with FMV Software switch.
|
|
||||||
SetSize( viewport );
|
SetSize( viewport );
|
||||||
CenterOnParent();
|
CenterOnParent();
|
||||||
|
|
||||||
|
|
|
@ -92,10 +92,6 @@ Panels::GameFixesPanel::GameFixesPanel( wxWindow* parent )
|
||||||
_("Enable the GIF FIFO (slower but needed for Hotwheels, Wallace and Gromit, DJ Hero)"),
|
_("Enable the GIF FIFO (slower but needed for Hotwheels, Wallace and Gromit, DJ Hero)"),
|
||||||
wxEmptyString
|
wxEmptyString
|
||||||
},
|
},
|
||||||
{
|
|
||||||
_("Switch to GSdx software rendering when an FMV plays"),
|
|
||||||
wxEmptyString
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
_("Preload TLB hack to avoid tlb miss on Goemon"),
|
_("Preload TLB hack to avoid tlb miss on Goemon"),
|
||||||
wxEmptyString
|
wxEmptyString
|
||||||
|
|
Loading…
Reference in New Issue