Skip to content

Commit

Permalink
Disable threading for projectM visualisation
Browse files Browse the repository at this point in the history
ProjectM only uses threads to background load presets, which takes next
to no time. Additionally, the synchronization code is utterly broken
making every preset transition an opportunity for a crash.  I'd
recommend never re-enabling them.
  • Loading branch information
althekiller committed Feb 1, 2012
1 parent 9c3a9ba commit 11f18da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xbmc/visualizations/XBMCProjectM/libprojectM/CMakeLists.txt
Expand Up @@ -58,7 +58,7 @@ endif(BUILD_PROJECTM_STATIC)
SET_TARGET_PROPERTIES(projectM PROPERTIES VERSION 2.00 SOVERSION 2)

if (APPLE)
ADD_DEFINITIONS(-DMACOS -DSTBI_NO_DDS -DUSE_THREADS)
ADD_DEFINITIONS(-DMACOS -DSTBI_NO_DDS)
set(RESOURCE_PREFIX "Resources" )
FIND_LIBRARY(CORE_FOUNDATION_LIBRARY CoreFoundation )
MARK_AS_ADVANCED (CORE_FOUNDATION_LIBRARY)
Expand All @@ -68,10 +68,10 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.4 -L/opt/local/l
else (APPLE)
if (WIN32)
set (RESOURCE_PREFIX "Resources")
ADD_DEFINITIONS(-DWIN32 -DSTBI_NO_DDS -DUSE_THREADS)
ADD_DEFINITIONS(-DWIN32 -DSTBI_NO_DDS)
else(WIN32)
set (RESOURCE_PREFIX "share/projectM")
ADD_DEFINITIONS(-DLINUX -DSTBI_NO_DDS -DUSE_THREADS)
ADD_DEFINITIONS(-DLINUX -DSTBI_NO_DDS)
endif(WIN32)
endif(APPLE)

Expand Down

0 comments on commit 11f18da

Please sign in to comment.