Project

General

Profile

Actions

Bug #244

closed

ttxtsubs can cause excessive cpu usage with some streams.

Added by mjl almost 15 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
02/15/2010
Due date:
% Done:

100%

Estimated time:

Description

Currently, ttxtsubs displays every page regardless of whether the page has new content or not, which depending on the stream, may be 100's (450 in one case here) of refreshes every second or so. This drives vdr's cpu usage through the roof (100% of one core), as well as causing an annoying flicker as the osd draw code tries to keep up.

Attached is a simple patch which discards duplicate frames. It also removes unnecessary ClearOSD() calls, as the ShowOSD() function deletes the osd itself as necessary. With the patch cpu usage remains stable even when 450 duplicate frames are decoded. The check should possibly be further up the pipe, but I don't know the code well enough.


Files

ttxtsubs-discard-dup-refreshes.diff (1.6 KB) ttxtsubs-discard-dup-refreshes.diff mjl, 02/15/2010 05:30 AM
ttxtsubs-downunder.patch (810 Bytes) ttxtsubs-downunder.patch make only pages with the erase flag be shown etobi, 02/19/2010 12:24 AM
Actions

Also available in: Atom PDF