X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=core%2Fmixer%2Fgpu%2Ffence.cpp;h=00af334677aa6163eaeffe967303c467890de439;hb=65852191182227ba7daae19bc9cad23ea1c303d3;hp=5de2a5894ec858e5bb9b1481f0aa87150223d54a;hpb=e5770670a865f6a4f85245c7f895acb03f295e26;p=casparcg 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)) {