mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-24 08:39:51 +00:00
Merge pull request #8577 from unknownbrackets/slow-effects
Consider depth blitting a slow framebuffer effect
This commit is contained in:
commit
042bfe6d83
@ -596,10 +596,10 @@ private:
|
||||
};
|
||||
|
||||
struct AtracSingleResetBufferInfo {
|
||||
u32 writePosPtr;
|
||||
u32 writableBytes;
|
||||
u32 minWriteBytes;
|
||||
u32 filePos;
|
||||
u32_le writePosPtr;
|
||||
u32_le writableBytes;
|
||||
u32_le minWriteBytes;
|
||||
u32_le filePos;
|
||||
};
|
||||
|
||||
struct AtracResetBufferInfo {
|
||||
|
@ -549,6 +549,10 @@ namespace DX9 {
|
||||
}
|
||||
|
||||
void FramebufferManagerDX9::BlitFramebufferDepth(VirtualFramebuffer *src, VirtualFramebuffer *dst) {
|
||||
if (g_Config.bDisableSlowFramebufEffects) {
|
||||
return;
|
||||
}
|
||||
|
||||
bool matchingDepthBuffer = src->z_address == dst->z_address && src->z_stride != 0 && dst->z_stride != 0;
|
||||
bool matchingSize = src->width == dst->width && src->height == dst->height;
|
||||
if (matchingDepthBuffer && matchingSize) {
|
||||
|
@ -773,6 +773,10 @@ void FramebufferManager::ReformatFramebufferFrom(VirtualFramebuffer *vfb, GEBuff
|
||||
}
|
||||
|
||||
void FramebufferManager::BlitFramebufferDepth(VirtualFramebuffer *src, VirtualFramebuffer *dst) {
|
||||
if (g_Config.bDisableSlowFramebufEffects) {
|
||||
return;
|
||||
}
|
||||
|
||||
bool matchingDepthBuffer = src->z_address == dst->z_address && src->z_stride != 0 && dst->z_stride != 0;
|
||||
bool matchingSize = src->width == dst->width && src->height == dst->height;
|
||||
if (matchingDepthBuffer && matchingSize) {
|
||||
|
Loading…
Reference in New Issue
Block a user