Re: best way to track note on/off in UI ?
Re: best way to track note on/off in UI ?
- Subject: Re: best way to track note on/off in UI ?
- From: Brian Willoughby <email@hidden>
- Date: Mon, 22 Feb 2010 08:53:43 -0800
On Feb 21, 2010, at 21:53, Stephen Blinkhorn wrote:
In my experience the act of updating your GUI probably uses more
resources than the listener code. I don't think it would be worth
refreshing the GUI more often than 30 times a second.
Your recommendation for a 30 Hz update seems about right, but I
wonder if there is any way for an AU host to participate in
determining the update rate. If Logic updates at 20 Hz or 40 Hz,
then it wouldn't make sense for an AU to fight this by updating more
frequently, and the visual latency suffers if the AU updates less
frequently. It seems like this would be a great opportunity for the
host to send a message to the AU suggesting that it is a good time to
update if needed. I seem to recall a similar topic coming up when
programmers porting VST effects to AU wanted to know whether there
was an 'idle' callback or anything else which might signal an
opportune moment to update the UI.
Anyone?
Is this an area where the AU GUI is flying blind? Is there no way to
coordinate UI updates with whatever rate the host is already using?
Brian Willoughby
Sound Consulting
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden