mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
a1bfb237e6
commit
0f01ba4c46
|
@ -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'"
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue