[x265] [PATCH] Framethreads tuning for Windows ARM devices

Dash Santosh dash.sathyanarayanan at multicorewareinc.com
Tue Sep 10 17:23:53 UTC 2024


This patch optimizes the frame threads count on Windows ARM devices. The
number of frame threads is set to the number of CPU cores, which enhances
the overall encoding performance on ARM-based Windows devices.

>From 09c947262350231868608e3e30b03cfdc1230b25 Mon Sep 17 00:00:00 2001
From: Dash Santosh <dash.sathyanarayanan at multicorewareinc.com>
Date: Tue, 10 Sep 2024 20:29:20 +0530
Subject: [PATCH] Framethreads tuning for Windows ARM devices

---
 source/common/threadpool.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/source/common/threadpool.cpp b/source/common/threadpool.cpp
index 91e82a24e..9c27be783 100644
--- a/source/common/threadpool.cpp
+++ b/source/common/threadpool.cpp
@@ -669,7 +669,11 @@ void ThreadPool::getFrameThreadsCount(x265_param* p,
int cpuCount)
     else if (cpuCount >= 16)
         p->frameNumThreads = 4;
     else if (cpuCount >= 8)
+#if _WIN32 && X265_ARCH_ARM64
+        p->frameNumThreads = cpuCount;
+#else
         p->frameNumThreads = 3;
+#endif
     else if (cpuCount >= 4)
         p->frameNumThreads = 2;
     else
--
2.43.0.windows.1

-- 

* <https://multicorewareinc.com/>*
  <https://www.linkedin.com/company/multicoreware-inc/>
<https://twitter.com/MulticoreWare>
<https://www.facebook.com/multicoreware>
<https://www.youtube.com/channel/UCXZ1A1MzS5JwBqwBkNfsBBw?sub_confirmation=1>
   <https://www.instagram.com/multicoreware.inc/>

*Dash Santosh*

*Research Engineer, Video Engineering*

Mobile: +91 78679 43737

IndiQube Echo Point, Avinashi Road

Coimbatore - 641 014
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20240910/2a5ab7fb/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Framethreads-tuning-for-Windows-ARM-devices.patch
Type: application/octet-stream
Size: 882 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20240910/2a5ab7fb/attachment.obj>


More information about the x265-devel mailing list