Page 1 of 1

Filters use abnormal amount of CPU [FIXED in 1.9.5]

Posted: Mon Apr 01, 2019 8:28 am
by Logickin λ
This happened to my 64 bits windows laptop with Sunvox 1.9.4c release:

One day, I am going to listen some other song in the example file. Listening to Twistboy - Good times, then I am wondering:
Why is the intro part so laggy, I remember it doesn't sound like that before.

So I did some investigation. I use one of the classic exciter module inside one of the example due to the number of filters. To make the test fair, I added a generator at the input and save that as a project, making the set up to be identical. Loaded 2 version of sunvox, 1.9.4c and 1.9.3b, I play a single notes from the input, returned the following result:

1.9.3b:
initial condition: 0%; Note playing: 2.2%; After the note stops: 2% fade to 0%

1.9.4c
initial condition: 0%; Note playing: 2.2%; After the note stops: jumps around 40% to slowly fade to 0%

Here is the video about reproducing the performance issue:


extra notes:
It also affects on the filter inside the analogue generator.
Tried Sunvox and Sunvox for old CPU, returning the similar result.
Should be related to this post: viewtopic.php?f=16&t=4767

Re: Filters use abnormal amount of CPU when idling after an input

Posted: Mon Apr 01, 2019 12:50 pm
by NightRadio
Thank you!
Seems it's only observed in 64-bit version for Windows. 32-bit one works fine.
I will try to fix it soon

Re: Filters use abnormal amount of CPU when idling after an input

Posted: Mon Apr 01, 2019 9:12 pm
by SawZer
I encountered this when working on my compo submission. My workaround was just Bypass the exciter when not in use :p

Re: Filters use abnormal amount of CPU when idling after an input

Posted: Mon Apr 15, 2019 5:50 am
by Logickin λ
NightRadio wrote:
Mon Apr 01, 2019 12:50 pm
Thank you!
Seems it's only observed in 64-bit version for Windows. 32-bit one works fine.
I will try to fix it soon
Thank you for your reply, I tried 32bit version of sunvox and it work without a single lag. :)
I encountered this when working on my compo submission. My workaround was just Bypass the exciter when not in use :p
Oh interesting, I don't notice that bypassing the module will reduce the CPU usage, thanks!

Re: Filters use abnormal amount of CPU when idling after an input

Posted: Thu Sep 19, 2019 5:54 pm
by NightRadio
Fixed in the upcoming v1.9.5