Skip to content
Browse files

gsdx ogl: only always uncommit texture in debug build

It is good for memory but bad for the speed. There is likely a better trade-off
but it should be enough for now
  • Loading branch information...
gregory38 authored and lightningterror committed Apr 10, 2019
1 parent 70c3c1a commit 568b96b8859c21deaccf8a5e0a0213320def55f8
Showing with 5 additions and 0 deletions.
  1. +5 −0 plugins/GSdx/Renderers/Common/GSDevice.cpp
@@ -163,7 +163,12 @@ void GSDevice::Recycle(GSTexture* t)
#ifdef _DEBUG
// Uncommit saves memory but it means a futur allocation when we want to reuse the texture.
// Which is slow and defeat the purpose of the m_pool cache.
// However, it can help to spot part of texture that we forgot to commit
t->last_frame_used = m_frame;


0 comments on commit 568b96b

Please sign in to comment.
You can’t perform that action at this time.