aboutsummaryrefslogtreecommitdiffhomepage
path: root/player/misc.c
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2014-09-25 20:25:24 +0200
committerGravatar wm4 <wm4@nowhere>2014-09-25 21:32:56 +0200
commitd23ffd243f33ce5d6a5649c7909664b0ae1e858e (patch)
treed237b384b4967682ead44f08d9fd0b7d78632776 /player/misc.c
parent9537e33057d99db65bb12d902d660e3b8c47c5ea (diff)
player: rate-limit OSD text update
There's no need to update OSD messages and the terminal status if nobody is going to see it. Since the player doesn't block on video display anymore, this update happens to often and probably burns slightly more CPU than necessary. (OSD redrawing is handled separately, so it's just mostly useless text processing and such.) Change it so that it's updated only on every video frame or all 50ms (whatever comes first). For VO OSD, we could in theory try to lock to the OSD redraw heuristic or the display refresh rate, but that's more complicated and doesn't work for the terminal status.
Diffstat (limited to 'player/misc.c')
0 files changed, 0 insertions, 0 deletions