GPU/HW: Clear dirty rectangle when updating shadow texture
Fixes high GPU usage in Robbit mon Dieu in D3D11, should improve overall performance slightly when VRAM copies are heavily used.
This commit is contained in:
parent
9ea163e666
commit
c8e1881ea9
4 changed files with 11 additions and 3 deletions
|
|
@ -99,6 +99,12 @@ void GPU_HW::PrintSettingsToLog()
|
|||
Log_InfoPrintf("Dual-source blending: %s", m_supports_dual_source_blend ? "Supported" : "Not supported");
|
||||
}
|
||||
|
||||
void GPU_HW::UpdateVRAMReadTexture()
|
||||
{
|
||||
m_renderer_stats.num_vram_read_texture_updates++;
|
||||
ClearVRAMDirtyRectangle();
|
||||
}
|
||||
|
||||
void GPU_HW::HandleFlippedQuadTextureCoordinates(BatchVertex* vertices)
|
||||
{
|
||||
// Taken from beetle-psx gpu_polygon.cpp
|
||||
|
|
@ -661,8 +667,6 @@ void GPU_HW::DispatchRenderCommand()
|
|||
FlushRender();
|
||||
|
||||
UpdateVRAMReadTexture();
|
||||
m_renderer_stats.num_vram_read_texture_updates++;
|
||||
ClearVRAMDirtyRectangle();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue