I'm expiriencing a weird bug, where my CPU-usage seems to be ok most of the time, but peaks every half second or so, causing heavy clicking to the sound. I'm looking for a clock to measure timings within the plugin.
I came across QueryPerformanceCounter() from "windows.h", but using TRACE and debug-mode causes the CPU to overload anyway.
Is there a way to get the times while still running in real time?
For realtime profiling of code (to find bottlenecks or other timing issues), use GetTickCount( ). There is a thread about this here:
The thread above describes writing the timing values to the RackAFX Status Window. But you could also write this out to a file instead, then examine the file after the run is completed.
I have not seen the CPU usage issue you describe in RackAFX, but I have seen it in Cubase when working with VST3s compiled in Debug mode in VS. This includes the NoteExpressionSynth VST3 sample that ships with the VST3 SDK.
Yeah, debug mode kills polyphony. For MiniSynth, I get 4 or 5 notes in debug mode, and 24 notes in the release version (this is true on all platforms, RAFX, VST3, and AU) on my current computer; newer/faster CPUs will give even more polyphony. The same applies to FX projects that are time intensive (like FFT-based processing).
Most Users Ever Online: 152
Currently Browsing this Page:
Guest Posters: 1
Newest Members:Jas, Rowan, sojourn, fabhenr, rg1, Niklas, Wutru, Tim Campbell, Danny Jonel, Valentin
Moderators: W Pirkle: 573
Administrators: Tom: 74, JD Young: 80, Will Pirkle: 0, W Pirkle: 573, VariableCook: 3