(12-21-2012, 02:55 AM)Shonumi Wrote:I compiled Dolphin on ubuntu precise in order to make it use the latest OpenCL libraries installed in the system(12-21-2012, 02:00 AM)algarues Wrote: anyway whether i select or not the opencl option in the video config nothing changes at the level of emulation speed
The OpenCL texture decoder is actually slower than the SSE2 optimized one, or something like that. IIRC, it could run better if someone decided to code it to use a more recent version of OpenCL. You're not really going to see any benefit in using OpenCL right now.
(12-21-2012, 02:00 AM)algarues Wrote: e.g. ztp hack does not change any of the emulation speed in hyrule fields (GC version)
I am trying to understand whether any of this is compilation dependent
That's probably because your system is running Hyrule Field as best as it currently can. Though, that's hard to say for sure, since we can't see what kind of hardware you're running (unless you post it). In any case, the ZTP hack is part of Dolphin's code; as long as you don't remove the related code, it gets compiled.
briefly:
I installed the opencl headers and cuda toolkit and configured the linker
I then changed CMakeLists.txt this way
Code:
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
find_library(CL OpenCL)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-lOpenCL")
else()
include_directories(Externals/CLRun/include)
add_subdirectory(Externals/CLRun)
endif()
Then after giving cmake ..
this new line appears in CMakeCache.txt
Code:
//Path to a library.
CL:FILEPATH=/usr/lib/libOpenCL.so
If CMakeLists.txt is left in the default state the line above does not appear.
Then I downloaded opencl-utils from googlecode and compiled clrun which generates libclrun.so, which has to be copied inside the system libraries
from openclutils I also copied clrun.h into /Source/Core/VideoCommon/Src
then Dolphin can be compiled without errors
in the end activating the OpenCL option does not improve a damn thing
However my graphic card is a 8800 GT, so, not the hottest thing in town.
Would a GPU that support sse3 improve things significantly?