gsdx-ogl: add a performance note for later

The idea will be to replace StretchRect for standard case with a framebuffer
blit. Potentially it toggles less gl state.

Worth a test on Star Ocean 3 that uses a lots this function for stencil emulation
This commit is contained in:
Gregory Hainaut 2015-05-29 18:12:08 +02:00
parent 426fcf3afc
commit 92d68b70d3
1 changed files with 4 additions and 0 deletions

View File

@ -733,6 +733,10 @@ void GSDeviceOGL::StretchRect(GSTexture* sTex, const GSVector4& sRect, GSTexture
return;
}
// Performance optimization. It might be faster to use a framebuffer blit for standard case
// instead to emulate it with shader
// see https://www.opengl.org/wiki/Framebuffer#Blitting
GL_PUSH("StretchRect from %d to %d", sTex->GetID(), dTex->GetID());
// ************************************