gsdx-ogl: mega boost

Enable Nvidia multi thread driver optimization
Enable ogl_texture_storage by default (requires for the speed boost
, later the option will be removed)
This commit is contained in:
Gregory Hainaut 2015-05-15 21:21:50 +02:00
parent a1bfb237e6
commit 0f01ba4c46
2 changed files with 6 additions and 4 deletions

View File

@ -85,15 +85,17 @@ then
fi
# Launch PCSX2
# Note: __GL_THREADED_OPTIMIZATIONS=1 enables threads optimization on Nvidia driver.
# It provides a big speed bump
if [ -x "pcsx2" ]
then
./pcsx2 $@
__GL_THREADED_OPTIMIZATIONS=1 ./pcsx2 $@
elif [ -x "pcsx2-dev" ]
then
./pcsx2-dev $@
__GL_THREADED_OPTIMIZATIONS=1 ./pcsx2-dev $@
elif [ -x "pcsx2-dbg" ]
then
./pcsx2-dbg $@
__GL_THREADED_OPTIMIZATIONS=1 ./pcsx2-dbg $@
else
echo "Error PCSX2 not found"
echo "Maybe the script was directly 'called'"

View File

@ -62,7 +62,7 @@ namespace PboPool {
// will use DMA CACHED memory as the source for buffer object operations
void Init() {
gl_GenBuffers(countof(m_pool), m_pool);
m_texture_storage = ((theApp.GetConfig("ogl_texture_storage", 0) == 1) && GLLoader::found_GL_ARB_buffer_storage);
m_texture_storage = ((theApp.GetConfig("ogl_texture_storage", 1) == 1) && GLLoader::found_GL_ARB_buffer_storage);
for (size_t i = 0; i < countof(m_pool); i++) {
BindPbo();