mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #18599 from hrydgard/tactics-ogre-eliminate-readback
Tactics Ogre: Remove a redundant GPU readback operation
This commit is contained in:
commit
cf81ae1b4e
4 changed files with 14 additions and 0 deletions
|
@ -135,6 +135,7 @@ void Compatibility::CheckSettings(IniFile &iniFile, const std::string &gameID) {
|
|||
CheckSetting(iniFile, gameID, "LoadCLUTFromCurrentFrameOnly", &flags_.LoadCLUTFromCurrentFrameOnly);
|
||||
CheckSetting(iniFile, gameID, "ForceUMDReadSpeed", &flags_.ForceUMDReadSpeed);
|
||||
CheckSetting(iniFile, gameID, "AllowDelayedReadbacks", &flags_.AllowDelayedReadbacks);
|
||||
CheckSetting(iniFile, gameID, "TacticsOgreEliminateDebugReadback", &flags_.TacticsOgreEliminateDebugReadback);
|
||||
}
|
||||
|
||||
void Compatibility::CheckVRSettings(IniFile &iniFile, const std::string &gameID) {
|
||||
|
|
|
@ -105,6 +105,7 @@ struct CompatFlags {
|
|||
bool LoadCLUTFromCurrentFrameOnly;
|
||||
bool ForceUMDReadSpeed;
|
||||
bool AllowDelayedReadbacks;
|
||||
bool TacticsOgreEliminateDebugReadback;
|
||||
};
|
||||
|
||||
struct VRCompat {
|
||||
|
|
|
@ -2683,6 +2683,10 @@ bool FramebufferManagerCommon::NotifyBlockTransferBefore(u32 dstBasePtr, int dst
|
|||
// NotifyBlockTransferAfter will take care of the rest.
|
||||
return false;
|
||||
} else if (srcBuffer) {
|
||||
if (width == 48 && height == 48 && srcY == 224 && srcX == 432 && PSP_CoreParameter().compat.flags().TacticsOgreEliminateDebugReadback) {
|
||||
return false;
|
||||
}
|
||||
|
||||
WARN_LOG_N_TIMES(btd, 10, G3D, "Block transfer readback %dx%d %dbpp from %08x (x:%d y:%d stride:%d) -> %08x (x:%d y:%d stride:%d)",
|
||||
width, height, bpp,
|
||||
srcBasePtr, srcRect.x_bytes / bpp, srcRect.y, srcStride,
|
||||
|
|
|
@ -1716,3 +1716,11 @@ NPJH50263 = true
|
|||
# Added for easy experimentation. Many games using readbacks do not work well delaying them, though.
|
||||
# For example, Motorstorm lighting adaptation goes into self-oscillation (!)
|
||||
# UCES01250 = true
|
||||
|
||||
[TacticsOgreEliminateDebugReadback]
|
||||
ULUS10565 = true
|
||||
ULES01500 = true
|
||||
ULJM05753 = true
|
||||
NPJH50348 = true
|
||||
ULJM06009 = true
|
||||
UCKS45164 = true
|
||||
|
|
Loading…
Add table
Reference in a new issue