mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 01:03:41 +01:00
Colin McRae: Use compat flag to avoid GPU readbacks for VRAM->VRAM copies.
Improves performance when the sun is visible, see #7810
This commit is contained in:
1 parent
f4b78bacd7
commit
0b375bb357
2 files changed
+18
-8
No files matched your search
@@ -1353,10 +1353,12 @@ void FramebufferManagerCommon::CopyDisplayToOutput(bool reallyDirty) {
|
||||
shaderManager_->DirtyLastShader();
|
||||
|
||||
if (displayFramebufPtr_ == 0) {
|
||||
if (Core_IsStepping())
|
||||
VERBOSE_LOG(FRAMEBUF, "Display disabled, displaying only black");
|
||||
else
|
||||
DEBUG_LOG(FRAMEBUF, "Display disabled, displaying only black");
|
||||
if (GetUIState() != UISTATE_PAUSEMENU) {
|
||||
if (Core_IsStepping())
|
||||
VERBOSE_LOG(FRAMEBUF, "Display disabled, displaying only black");
|
||||
else
|
||||
DEBUG_LOG(FRAMEBUF, "Display disabled, displaying only black");
|
||||
}
|
||||
// No framebuffer to display! Clear to black.
|
||||
if (useBufferedRendering_) {
|
||||
draw_->BindFramebufferAsRenderTarget(nullptr, { Draw::RPAction::CLEAR, Draw::RPAction::CLEAR, Draw::RPAction::CLEAR }, "CopyDisplayToOutput");
|
||||
@@ -1444,10 +1446,12 @@ void FramebufferManagerCommon::CopyDisplayToOutput(bool reallyDirty) {
|
||||
displayFramebuf_ = vfb;
|
||||
|
||||
if (vfb->fbo) {
|
||||
if (Core_IsStepping())
|
||||
VERBOSE_LOG(FRAMEBUF, "Displaying FBO %08x", vfb->fb_address);
|
||||
else
|
||||
DEBUG_LOG(FRAMEBUF, "Displaying FBO %08x", vfb->fb_address);
|
||||
if (GetUIState() != UISTATE_PAUSEMENU) {
|
||||
if (Core_IsStepping())
|
||||
VERBOSE_LOG(FRAMEBUF, "Displaying FBO %08x", vfb->fb_address);
|
||||
else
|
||||
DEBUG_LOG(FRAMEBUF, "Displaying FBO %08x", vfb->fb_address);
|
||||
}
|
||||
|
||||
float u0 = offsetX / (float)vfb->bufferWidth;
|
||||
float v0 = offsetY / (float)vfb->bufferHeight;
|
||||
|
||||
@@ -678,6 +678,12 @@ ULJS00233 = true
|
||||
NPJH90089 = true # (demo)
|
||||
NPJH90065 = true # Unknown
|
||||
|
||||
# Colin McRae 2005 (sun effect, see #7810)
|
||||
ULES00111 = true
|
||||
ULKS46010 = true
|
||||
ULJM05223 = true
|
||||
ULJM05362 = true
|
||||
|
||||
# Note! This whole flag is disabled temporarily by appending "Disabled" to its name). See 7914
|
||||
[YugiohSaveFixDisabled]
|
||||
# The cause of Yu-gi-oh series 's bad save (cannot save) are load "save status" and use cwcheat,
|
||||
|
||||
Reference in new issue
Block a user