[Webkit-unassigned] [Bug 46834] Limit number of AudioNode deletions per render quantum in AudioContext

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 29 13:29:24 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=46834





--- Comment #6 from Chris Rogers <crogers at google.com>  2010-09-29 13:29:23 PST ---
(In reply to comment #4)
> >  many are deleted in the real-time audio thread
> 
> Isn't the right solution to ensure that these are not deleted on that thread, rather than implementing throttling?

Sometimes, they have to be deleted in the real-time audio thread because the garbage collection happens before the "note" has finished playing.  Later on, in the real-time thread the note finishes and there's no more chance to delete it in the main thread.  We could implement a callOnMainThread() type of thing, but I think this would introduce performance problems into the main thread.  I think we need the throttling (for the audio thread) but also try to delete the nodes at every opportunity we have in the main thread (such as in the connect(), disconnect(), and deref() methods.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list