The issue here is the animations. Waveforms and also Knob animations. If I only react on user interaction, those won't workTaron wrote:Forgive me for suggestion/asking, but If you just check for the mouse triggers (and window messages?) to update the graphics at change of values, just how it ordinarily works...wouldn't that do the trick and you could skip constant updating?
I'm using vstgui4.0 and rely on it's update logic, which appears to be quite solid and "calm".
One Synth Challenge #89: Tunefish4 by Brain Control (Meakaale wins!)
- KVRist
- 146 posts since 27 Aug, 2011 from Germany
- KVRAF
- 3206 posts since 17 Apr, 2010 from Slovenia
Ugh... are you redrawing the whole interface then or just the respective elements? And also... pfff, man, that is the least of its needs, if you asked me. Maybe make a toggle to animate or not for those, who have troubles with it! 
(by the way, I'm using MULab and have no issues with it as far as I can tell!)
(by the way, I'm using MULab and have no issues with it as far as I can tell!)
- KVRist
- 146 posts since 27 Aug, 2011 from Germany
Juce is deciding on what to redraw in this case. It's the Framework I use. Of course it should only redraw on change. And also only when the window is open, otherwise it will not render. I checked that already
- KVRist
- 146 posts since 27 Aug, 2011 from Germany
Okay, here's a new build. I now also switched of animation of the waveform. That should save some cpu cycles.
https://dl.dropboxusercontent.com/u/233 ... efish4.dll
https://dl.dropboxusercontent.com/u/233 ... efish4.dll
I will now also put in an option to switch off animations alltogether if those are using too much CPU
https://dl.dropboxusercontent.com/u/233 ... efish4.dll
https://dl.dropboxusercontent.com/u/233 ... efish4.dll
I will now also put in an option to switch off animations alltogether if those are using too much CPU
- KVRAF
- 3206 posts since 17 Apr, 2010 from Slovenia
Very cool, thanks!
...as grateful as I am about frameworks, isn't it always a pain, having to dig deep into its trenches to see what's really going on?! Despite the documentation of vstgui, for example, I literally had to trace every other method through to its very root to know what's going on and what to do. 
- KVRist
- 146 posts since 27 Aug, 2011 from Germany
Luckily I did not have to dig all too much into Juce. But the very very nice thing about it that I do not like to miss is the fact, that I do not have to deal with VST or Audio Unit interfaces at all. VST was never a big issue, but AU seems so much more complicated. With Juce I just implement their Audio interface which is simple and well documented and it keeps the rest of the complexity away from me 
- KVRist
- 146 posts since 27 Aug, 2011 from Germany
Okay, here's another new build. Switched off OpenGL again since it might just cause more issues. If anybody has considerably better performance with the beta2 build, let me know. For me it makes no difference.
I now added 3 configuration buttons on the bottom of the UI. The first lets you decide if you want to have animations at all. Then if you do, you can choose the framerate between 10fps and 25fps and you can also choose if you want the moving waveforms or not.
Hope that will solve this CPU issue now
https://dl.dropboxusercontent.com/u/233 ... efish4.dll
https://dl.dropboxusercontent.com/u/233 ... efish4.dll
I now added 3 configuration buttons on the bottom of the UI. The first lets you decide if you want to have animations at all. Then if you do, you can choose the framerate between 10fps and 25fps and you can also choose if you want the moving waveforms or not.
Hope that will solve this CPU issue now
https://dl.dropboxusercontent.com/u/233 ... efish4.dll
https://dl.dropboxusercontent.com/u/233 ... efish4.dll
-
- KVRian
- 725 posts since 11 Mar, 2014 from Netherlands
Latest build 4.1.0 beta 3 (from github) is AWESOME!
As long as I switch of the animations buttons
Planning on making some prog-rock this month
where's the headbanging metalhead emoji ??
As long as I switch of the animations buttons
Planning on making some prog-rock this month
where's the headbanging metalhead emoji ??
- KVRist
- 146 posts since 27 Aug, 2011 from Germany
That new version from github would actually be beta4. Just relabled itrghvdberg wrote:Latest build 4.1.0 beta 3 (from github) is AWESOME!
As long as I switch of the animations buttons
Planning on making some prog-rock this month
where's the headbanging metalhead emoji ??
Here's the new build:
https://dl.dropboxusercontent.com/u/233 ... efish4.dll
https://dl.dropboxusercontent.com/u/233 ... efish4.dll
Also mac builds this time for VST/AU:
https://dl.dropboxusercontent.com/u/233 ... ponent.zip
https://dl.dropboxusercontent.com/u/233 ... h4.vst.zip
-
- DASH Guy
- 8156 posts since 20 Sep, 2001
Hi Payne,payne_bc wrote:That change will make the UI stop updating completely. Don't do it, it breaks way more than it fixes. I will look into the CPU issues today and I also grabbed copies of FL Studio and Live 9 to see how it behaves with those.liqih wrote:
Have you tried a build with startTimer (50); removed
from Tunefish4AudioProcessorEditor()
?
That was the change on Windows for avoiding GUI CPU load. From 70% to 2% here.
EDIT: Ah I see I was too lateNever mind
Yeah, I realized that issue some minutes later.
Your latest builds needs at least Windows 7 right?
For DAWs I still use a dedicated Windows XP machine,
therefore I have to use my 32-bit build with startTimer (400);
very slow animations but works fine, at least in EnergyXT.
But Live 9 crashes as soon as I open the editor, both with
my build and yours from 5/5/2014.
Running with debugger, when I open the editor
it always throws an exception EAccessViolation
as soon as the code reaches this call in Tunefish4AudioProcessorEditor():
m_freqView.setSynth(ownerFilter, synth, synth->instr[0]);
Anyway I can at least use it in EnergyXT.
So many thanks for the great synth,<grin>
Cheers
-
- DASH Guy
- 8156 posts since 20 Sep, 2001
here is my VST 32-bit DLL of Tunefish4 compatible with Windows XP,
http://nusofting.liqihsynth.com/zip/tun ... ows_XP.zip
if anyone needs it, rare case I guess <wink>
http://nusofting.liqihsynth.com/zip/tun ... ows_XP.zip
if anyone needs it, rare case I guess <wink>
- KVRist
- 146 posts since 27 Aug, 2011 from Germany
How did you build it?liqih wrote:here is my VST 32-bit DLL of Tunefish4 compatible with Windows XP,
http://nusofting.liqihsynth.com/zip/tun ... ows_XP.zip
if anyone needs it, rare case I guess <wink>
-
- DASH Guy
- 8156 posts since 20 Sep, 2001
Ah, sorry, I used VC++ 2008, compiler 15.0.30729.1payne_bc wrote:How did you build it?liqih wrote:here is my VST 32-bit DLL of Tunefish4 compatible with Windows XP,
http://nusofting.liqihsynth.com/zip/tun ... ows_XP.zip
if anyone needs it, rare case I guess <wink>Might be good to add to the README.md
Microsoft SDKs v6.1.
Do I need to upload the source modifications
and the tunefish4.vcproj too?
Last edited by liqih on Tue Jul 05, 2016 2:35 pm, edited 1 time in total.
- KVRist
- 146 posts since 27 Aug, 2011 from Germany
Ah, so just an older compiler... I see 
-
- KVRian
- 725 posts since 11 Mar, 2014 from Netherlands
I just type 'make'
yay linux
yay linux
