[Bug 773681] directsoundsink: High cpu usage on windows x86

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu May 4 13:26:07 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=773681

--- Comment #21 from Nirbheek Chauhan <nirbheek.chauhan at gmail.com> ---
Created attachment 351048
  --> https://bugzilla.gnome.org/attachment.cgi?id=351048&action=edit
Fix high CPU usage and sleep for at least 10ms while looping

Trying to optimize the time we sleep for is futile in the case of
directsoundsink because the sink position is updated too infrequently (usually
only once per segment), so if we sleep for 5ms, we will actually end up looping
twice as much as if we sleep for 10ms.

This is because the ringbuffer provided by directsound (for both source and
sink) is emulated in software. See
https://bugzilla.gnome.org/show_bug.cgi?id=781249 for the source case.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list