trouble with IPresetMenu, IPopupMenu
Using the IPresetMenu stuff from the multi-target example. If I just run the example, I consistently get a cpu overload issue in all formats/DAW's. Pro Tools is most obvious because it stops playback when the preset menu is clicked on (other DAW's just stutter a bit). This only happens the very first time the preset menu is clicked on, and it only occurs if playback is active. Thereafter it is fine. I'm thinking popup menus must be popular (pun?), and so I'm hoping someone may have fixed this in their own popup menu implementation. I suspect that OnMouseDown->doPopUpMenu->CreateIPopupMenu is the part that takes a chunk of cpu in some GUI thread and somehow this prevents the audio thread from running.
|