GPU/HW: Improve dirty rectangle tracking

Fixes title screen of Activision Classics and performance regression
from Vagrant Story motion blur fix.
This commit is contained in:
Connor McLaughlin
2020-02-09 22:49:50 +09:00
parent 2bf6912f39
commit 9ac7b002e2
2 changed files with 47 additions and 26 deletions

View File

@ -128,6 +128,7 @@ protected:
m_draw_mode.SetTexturePageChanged();
}
void ClearVRAMDirtyRectangle() { m_vram_dirty_rect.SetInvalid(); }
void IncludeVRAMDityRectangle(const Common::Rectangle<u32>& rect);
u32 GetBatchVertexSpace() const { return static_cast<u32>(m_batch_end_vertex_ptr - m_batch_current_vertex_ptr); }
u32 GetBatchVertexCount() const { return static_cast<u32>(m_batch_current_vertex_ptr - m_batch_start_vertex_ptr); }