Skip to content

Commit

Permalink
gsdx-ogl: mega boost
Browse files Browse the repository at this point in the history
Enable Nvidia multi thread driver optimization
Enable ogl_texture_storage by default (requires for the speed boost
, later the option will be removed)
  • Loading branch information
gregory38 committed May 15, 2015
1 parent a1bfb23 commit 0f01ba4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions bin/launch_pcsx2_linux.sh
Expand Up @@ -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'"
Expand Down
2 changes: 1 addition & 1 deletion plugins/GSdx/GSTextureOGL.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 0f01ba4

Please sign in to comment.