From 09362ec89302304408ed6d39494b102cb694b0e4 Mon Sep 17 00:00:00 2001 From: ronag Date: Sun, 4 Sep 2011 15:41:45 +0000 Subject: [PATCH] 2.0. Initialize TBB worker threads right away to avoid spikes when playing the first media files. git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches/2.0.0.2@1345 362d55ac-95cf-4e76-9f9a-cbaa9c17b72d --- shell/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shell/main.cpp b/shell/main.cpp index 7fac0539d..6843c9d22 100644 --- a/shell/main.cpp +++ b/shell/main.cpp @@ -59,6 +59,7 @@ #include +#include #include #include @@ -203,6 +204,8 @@ int main(int argc, wchar_t* argv[]) caspar::win32_exception::install_handler(); } } tbb_thread_installer; + + tbb::task_scheduler_init init; try { -- 2.39.2