neowin[.]net/news/if-youre-unhappy-with-microsofts-windows-11-and-10-scheduler-this-capframex-tool-may-help/
github[.]com/CXWorld/CapFrameX/releases/tag/v1.7.2beta
The CapFrameX thread affinity controller works with Intel hybrid architecture & AMD Ryzen with 2 CCDs setting predefined affinity processor threads. It comes with the warning that: "If a game has a large thread pool, forcing scheduling to half the number of threads can lead to increased context switches and thus noticeable frame times spikes. This was the case, for example, with Metro Exodus Enhanced Edition."
Starting with their 12th GEN, Intel hybrid CPUs have both performance & efficient cores, while a Ryzen CPU with 2 CCDs means it basically has 2 processor chips on the die.
At any rate, something to try if you want.