From: ronag Date: Sun, 4 Sep 2011 15:41:45 +0000 (+0000) Subject: 2.0. Initialize TBB worker threads right away to avoid spikes when playing the first... X-Git-Tag: 2.0.1~12 X-Git-Url: https://git.sesse.net/?p=casparcg;a=commitdiff_plain;h=09362ec89302304408ed6d39494b102cb694b0e4 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 --- 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 {