-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A Basic CPU Load Implementation #6576
Comments
It sounds like you are running into the clipper. If you turn the amplitude down for each osc in the mixer does the problem resolfe? Also 25% is quite a lot of cpu. May want to take that unison count to 7. |
Thanks for the prompt reply. Changing the osc amplitude makes no difference
(except that the artefacts are quieter).
The magnitude of the problem reduces as the the unison count is decreased
and at 10 it disappears completely and the the cpu usages is limit to 21%
Apologies if this is expected behaviour, I didn't realise that I was
pushing the synth to a limit by selecting max unison voices.
…On Sat, 27 Aug 2022 at 21:33, Paul ***@***.***> wrote:
It sounds like you are running into the clipper. If you turn the amplitude
down for each osc in the mixer does the problem resolfe?
Also 25% is quite a lot of cpu. May want to take that unison count to 7.
—
Reply to this email directly, view it on GitHub
<#6576 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABWEAN4PKSNUQJIUCYXY33V3IKMJANCNFSM57ZKMZNQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Yeah the 16 voice unison is something of a legacy option at this point. There's severely diminishing returns after around 7 or so anyway, and you're not the first to run into CPU and/or level issues with it. Seems like the consensus is that the next major update (not strictly scheduled but planned sometime next year maybe) will have a more sensible max to the unison parameters. :) |
Yeah those digital artifacts are your CPU being overloaded, not an error in Surge. Since this happens at 25% CPU, this tells me one core (assuming you have a quad core CPU) simply got oversaturated and since Surge doesn't do multicore processing, everything falls over. At any rate, not a Surge bug. |
We really will have to do multi core when we do xt2. |
Just a thought, but would it be useful to have an indicator showing when the CPU is overloaded? It wasn't obvious to me, but I'm newish to software synths so maybe this not such a mystery to most users. I'm happy to look at implementing this if it is wanted |
I’ve thought about doing a hires timer on process and comparing i with sr/32 yeah. If you want to give that a shot lemme know and I will add some more detailed notes here on how I would proceed. Welcome the dev help! I’ll reopen this and if your game add notes tomorrow am |
Sure, I'm keen.
…On Sun, 28 Aug 2022 at 09:28, Paul ***@***.***> wrote:
Reopened #6576 <#6576>.
—
Reply to this email directly, view it on GitHub
<#6576 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABWEAP7M4R2SCE6NHF24MTV3K6DPANCNFSM57ZKMZNQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
OK so the basic idea is
but before that begins, you want to make sure you can build and change surge. Standard advice is clone, checkout, build, modify one of the strings in So to each of the steps Time the main ::process loop.
Update a valueThe UI thread runs much more slowly than the audio thread and you want to smooth the CPU anyway. The way we do this with the VU meter is an exponential decay. So lets do same here
Show the valuefirst thing I would do is in I would do this as follows, but follow the code
Discord is best way for realtime help and questions. Hope this helps! |
Oh hey, we have actually implemented this in 1.1.2! So, closing! |
Bug Description:
Playing very many notes with multiple sine OSC with unison voices will produce a lot of clicking/fuzz/digitial distortion.
Surge XT Version
Surge XT 1.0.1.60228e8
64 bit
Stand alone executable
Reproduction Steps:
Expected Behavior:
The sound produced by pressing the first key should not be significantly different then the sound produced when pressing later keys.
Computer Information (please complete the following!):
Windows 10 - 64bit
Stand alone executable ("Surge XT.exe")
Additional Information
Surge is utilizing about 25% of CPU during this process
The text was updated successfully, but these errors were encountered: