mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-02 20:41:22 +01:00
gsdx-ogl: optimize GPU->CPU memory transfer size
Might help for snow engine game (a little) Previous code use to read the full texture whereas now it will be limited to the size of the useful data.
This commit is contained in:
1 parent
490cb757bf
commit
da741e294e
2 files changed
+8
-2
No files matched your search
@@ -83,8 +83,9 @@ void GSTextureCacheOGL::Read(Target* t, const GSVector4i& r)
|
||||
if(GSTexture* offscreen = m_renderer->m_dev->CopyOffscreen(t->m_texture, src, r.width(), r.height(), fmt, ps_shader))
|
||||
{
|
||||
GSTexture::GSMap m;
|
||||
GSVector4i r_offscreen(0, 0, r.width(), r.height());
|
||||
|
||||
if(offscreen->Map(m))
|
||||
if(offscreen->Map(m, &r_offscreen))
|
||||
{
|
||||
// TODO: block level write
|
||||
|
||||
|
||||
Reference in new issue
Block a user