From 0c31124cd2f090d4115c23a0b318175952516c86 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 9 Jan 2022 13:32:28 +0100 Subject: [PATCH] Disabled threading for rlottie as it causes performance degradations. --- external/CMakeLists.txt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index 2a56f4185..391f46b17 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -11,12 +11,10 @@ if(NOT WIN32) set(BUILD_SHARED_LIBS OFF) endif() -# There is a bug that makes rlottie hang forever on application shutdown if compiled using MinGW -# with threading support enabled. Disable it for MSVC as well to keep the behavior consistent -# across builds with either of these compilers. -if(WIN32) - option(LOTTIE_THREAD OFF) -endif() +# Disabled threading support for rlottie as this functionality actually leads to far worse +# performance. As well there is a bug on Windows that makes rlottie hang forever on application +# shutdown if compiled using MinGW with threading support enabled. +option(LOTTIE_THREAD OFF) option(LOTTIE_MODULE OFF)