Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Clock for Precise Measurements
No permission to create posts
September 23, 2015
6:30 pm
Avatar
Frodson
Member
Members
Forum Posts: 38
Member Since:
September 7, 2015
sp_UserOfflineSmall Offline

Hi there,
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?
Cheers, Frodson

September 23, 2015
8:14 pm
Avatar
W Pirkle
Admin
Forum Posts: 143
Member Since:
January 28, 2017
sp_UserOfflineSmall Offline

For realtime profiling of code (to find bottlenecks or other timing issues), use GetTickCount( ). There is a thread about this here:

http://www.willpirkle.com/foru.....s-express/

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.

- Will

September 23, 2015
10:35 pm
Avatar
Frodson
Member
Members
Forum Posts: 38
Member Since:
September 7, 2015
sp_UserOfflineSmall Offline

THANK YOU! I didnt even know I compiled in debugging mode. After switching it off polyphony increased from 4 to 30 without any clicks :)

September 24, 2015
12:03 am
Avatar
W Pirkle
Admin
Forum Posts: 143
Member Since:
January 28, 2017
sp_UserOfflineSmall Offline

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).

- Will

Forum Timezone: America/New_York

Most Users Ever Online: 36

Currently Online:
3 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Skyler: 47

Peter: 41

Derek: 41

clau_ste: 39

Frodson: 38

Gwen: 32

EZB: 24

lppier: 23

Msaldaña: 18

Jorge: 17

Member Stats:

Guest Posters: 1

Members: 476

Moderators: 1

Admins: 4

Forum Stats:

Groups: 11

Forums: 30

Topics: 482

Posts: 1876

Newest Members:

sam, annaharris, Marie Weaver, kev, Steven, Mr Anderson, mguy, omelc

Moderators: W Pirkle: 143

Administrators: Tom: 65, JD Young: 80, Will Pirkle: 0, W Pirkle: 143