From e7d8899c1327cb96e03dab18059f7aaa4ed6502a Mon Sep 17 00:00:00 2001 From: henryruhs Date: Tue, 22 Sep 2026 22:21:39 +0200 Subject: [PATCH] remove OMP_NUM_THREADS pin Benchmarks on master and v4 (cuda, bella.mp4, 300 frames) show no measurable difference between OMP_NUM_THREADS=1 and the default; the historical pin buys nothing for this workload. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_014Tsq4PPbu13EpTbRVtDLp4 --- facefusion/environment.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/facefusion/environment.py b/facefusion/environment.py index 81728cc4..e2f5b867 100644 --- a/facefusion/environment.py +++ b/facefusion/environment.py @@ -11,7 +11,6 @@ def setup() -> None: if not environment_ready: if is_linux(): - os.environ['OMP_NUM_THREADS'] = '1' os.environ['MALLOC_ARENA_MAX'] = '4' os.environ['ENVIRONMENT_READY'] = '1' @@ -32,7 +31,6 @@ def setup() -> None: os.execv(sys.executable, [ sys.executable ] + sys.argv) if is_windows(): - os.environ['OMP_NUM_THREADS'] = '1' os.environ['ENVIRONMENT_READY'] = '1' if conda_prefix: