rsx: Restructuring [WIP]

- Refactor invalidate memory functions into one function
- Add cached object rebuilding functionality to avoid throwing away useful memory on an invalidate
- Added debug monitoring of texture unit VRAM usage
This commit is contained in:
kd-11 2017-10-22 00:12:32 +03:00
parent b0737d1c90
commit 5e58cf6079
8 changed files with 263 additions and 247 deletions

View file

@ -403,7 +403,7 @@ void GLGSRender::read_buffers()
}
else
{
m_gl_texture_cache.invalidate_range(texaddr, range);
m_gl_texture_cache.invalidate_range(texaddr, range, false, true);
std::unique_ptr<u8[]> buffer(new u8[pitch * height]);
color_buffer.read(buffer.get(), width, height, pitch);