[gstreamer-bugs] [Bug 627780] New: GstClockOverlay re-renders string even if it hasn't changed, resulting in very high CPU usage.

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Aug 23 15:55:23 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=627780
  GStreamer | gst-plugins-base | git

           Summary: GstClockOverlay re-renders string even if it hasn't
                    changed, resulting in very high CPU usage.
    Classification: Desktop
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: chris.shoemaker at cox.net
         QAContact: gstreamer-bugs at lists.sourceforge.net
      GNOME target: ---
     GNOME version: ---


Created an attachment (id=168597)
 --> (https://bugzilla.gnome.org/attachment.cgi?id=168597)
clockoverlay: only rerender text if time string has changed

[PATCH] clockoverlay: only rerender text if time string has changed

The textoverlay element will rerender the text string whenever
overlay sets the 'need_render' flag to TRUE.  Previously, we
lazily set the flag to TRUE every time the time string was requested.
Now, we save a copy of the previously given string, and only set
'need_render' to TRUE if the string has changed.

In my tests with a 30fps video stream, and a time string including
a seconds field, this change reduced the CPU usage of the clockoverlay
element from 60% to 5%.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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