Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove all instances of OpenCL in the Dolphin Project. A brief histor…
…y of OpenCL in Dolphin. OpenCL was originally added to the Dolphin codebase 1 month after it was released with OS X Snow Leopard in 2009. OpenCL was one of the largest group projects that Dolphin ever has had. The OpenCL texture decoder was originally aded with version 1.0 of the OpenCL spec; This version didn't have the capability of a OpenCL-OpenGL interop which would allow for uploading textures once and have it decoded directly to a OpenGL texure. This was to be worked out when the OpenCL 1.1 spec was released and allowed the interop. This work has never been done, and no one in the team is willing to work on it for various reasons. OpenCL has had the unreasonable expectation that it increases the performance of video games that require a large amount of EFB copies like NSMBW. In reality, enabling OpenCL just put the graphics card in a higher power mode which increased the game speed. This is due to the unfortunate effect of Dolphin tending to not push GPUs out of their lower frequency power savings modes. Thanks to everyone that had contributed to the OpenCL texture decoder.
  • Loading branch information
Sonicadvance1 committed Dec 11, 2013
1 parent c016d02 commit eb3b933
Show file tree
Hide file tree
Showing 48 changed files with 16 additions and 5,465 deletions.
10 changes: 1 addition & 9 deletions CMakeLists.txt
Expand Up @@ -510,7 +510,7 @@ include_directories(Source/Core/VideoUICommon/Src)
# - make sure to tell cmake to link them statically or dynamically (most
# should be linked statically)
# - place the CMakeLists.txt in the first-level subdirectory, e.g.
# Externals/CLRun/CMakeLists.txt (that is: NOT in some Src/ subdirectory)
# Externals/zlib/CMakeLists.txt (that is: NOT in some Src/ subdirectory)
#
add_subdirectory(Externals/Bochs_disasm)
include_directories(Externals/Bochs_disasm)
Expand Down Expand Up @@ -673,14 +673,6 @@ if (ANDROID)
add_subdirectory(Externals/libiconv-1.14)
endif()

if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND NOT ANDROID)
find_library(CL OpenCL)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-weak_framework,OpenCL")
else()
include_directories(Externals/CLRun/include)
add_subdirectory(Externals/CLRun)
endif()

if(NOT DISABLE_WX AND NOT ANDROID)
include(FindwxWidgets OPTIONAL)
FIND_PACKAGE(wxWidgets COMPONENTS core aui adv)
Expand Down
348 changes: 0 additions & 348 deletions Data/Sys/OpenCL/TextureDecoder.cl

This file was deleted.

10 changes: 0 additions & 10 deletions Externals/CLRun/CMakeLists.txt

This file was deleted.

0 comments on commit eb3b933

Please sign in to comment.