Track flags to reduce unnecessary VRAM zeroing.

If we haven't downloaded to RAM since the last zero, no need to zero
again.  This is the most common case.
This commit is contained in:
Unknown W. Brackets committed 2017-04-09 15:10:07 -07:00
1 parent 19bf222ea4
commit 70d17d1bc7
8 files changed
+94 -71

No files matched your search

+1 -1
View File
@@ -892,7 +892,7 @@ void DrawEngineVulkan::DoFlush(VkCommandBuffer cmd) {
framebufferManager_->SetSafeSize(scissorX2, scissorY2);
if (g_Config.bBlockTransferGPU && (gstate_c.featureFlags & GPU_USE_CLEAR_RAM_HACK) && gstate.isClearModeColorMask() && (gstate.isClearModeAlphaMask() || gstate.FrameBufFormat() == GE_FORMAT_565)) {
ApplyClearToMemory(scissorX1, scissorY1, scissorX2, scissorY2, result.color);
framebufferManager_->ApplyClearToMemory(scissorX1, scissorY1, scissorX2, scissorY2, result.color);
}
}
}