Hello abaymajr,
abaymajr wrote:all combinations of buffer size and number of audio buffers with sound delays less than 5.3 ms (256*1 or 128*2 at 48 KHz, 512*1 or 256*2 at 96 KHz) produce CPU spikes, even with Haupwerk.exe process set to realtime
As long as you have reliable audio with 256x1 at 48k, or 512x1 at 96 kHz, then I would regard your PC as performing well. Using less buffering than that would be considered extreme and 'experimental', and all PCs (even fast modern ones) will show a certain amount of constantly-varying background load on Hauptwerk's "audio CPU" meter even when no pipes with smaller buffer sizes, and especially so with less than 5.3ms of buffering. A small number of green bars (e.g. 1-3) showing erratically on Hauptwerk's CPU meter is normal and doesn't indicate a problem. I would highly recommend always using at least 5.3ms of buffering anyway. With most audio drivers, using a single larger buffer (e.g. 256x1) will usually give better performance (better resilience to audio glitches) than the equivalent total amount of buffering from several smaller buffers (e.g. 128x2).
abaymajr wrote:But in the case of more adverse circunstances in the future, and to be able to make usage of 2.7 ms sound delay (256 buffer size at 96 KHz) with confidence, I'd like to test that workaround of a Hauptwerk 7 compilation made exclusively for CPUs with AVX2 instructions. The CPU is a i7-13700H.
Just to clarify -- the standard build of Hauptwerk v7 that you already have installed is compiled and fully optimised exclusively for the AVX2 instruction set anyway. (Hauptwerk's installer automatically selects and installs the appropriately-optimised executable, based on the host computer's CPU, from several different executables that the installer contains.)
The special executable that I mentioned is exactly the same with regard to how it is compiled and optimised, and the only relevant difference is that it doesn't set thread CPU core affinities at all, specifically for people who have problems with other processes (probably dwm.exe, if any) hogging specific cores. On PCs that don't have that problem, it's likely to give *worse* performance, since Windows often causes audio glitches whenever it moves an audio thread from one CPU core to another (which it is allowed to do for that special executable, given that it doesn't set thread CPU core affinities), and also since Windows may well then put audio threads on the same CPU cores as the background model threads (wind supply model, etc.).
In the other forum thread on your new PC (
https://www.forum.hauptwerk.com/viewtop ... 85#p156212 ) you mentioned that the CPU load isn't evenly distributed between the CPU's performance (P) and efficiency (E) cores. That's to be expected with Hauptwerk v7, since v7 doesn't have specific functionality for distributing load optimally across cores of differing performances (as found on the 12th+ generation Intel i7/i9 models). However, performance is still excellent on those CPUs anyway, and Hauptwerk will have dedicated support for handing such CPUs optimally in the near future.
I would recommend simply waiting for that to be available (and sticking with at least 5.3ms of buffering in any case).
Best regards, Martin.
Hauptwerk software designer/developer, Milan Digital Audio.