From: ronag Date: Mon, 7 Nov 2011 19:21:41 +0000 (+0000) Subject: git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches... X-Git-Tag: 2.0.0.2~7 X-Git-Url: https://git.sesse.net/?p=casparcg;a=commitdiff_plain;h=65852191182227ba7daae19bc9cad23ea1c303d3 git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches/2.0.0.2@1542 362d55ac-95cf-4e76-9f9a-cbaa9c17b72d --- diff --git a/core/mixer/gpu/fence.cpp b/core/mixer/gpu/fence.cpp index 5de2a5894..00af33467 100644 --- a/core/mixer/gpu/fence.cpp +++ b/core/mixer/gpu/fence.cpp @@ -47,10 +47,11 @@ struct fence::implementation Sleep(2); } } - + + static tbb::atomic count; static tbb::atomic warned; - if(delay > 2) + if(delay > 2 && ++count > 16) { if(!warned.fetch_and_store(true)) {