Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] [PATCH] Reduce CPU usage during playback
Here is an experimental two line patch which dramatically reduces the
CPU load of VDR during playback (not live video). For me, this reduces
the CPU load for video playback from around 40% to <10%. The CPU load
for audio drops even more, from around 30% to <1%.
The patch make the dvbplayer thread sleep if it can't get data from the
non blocking file reader.
It works for me, but probably needs to more thorough testing to make
sure it doesn't break anything.
The patch is against vdr-1.2.1
My setup is a budget Nova-T card + DXR3-0.20
Jon
--- dvbplayer.c-bak 2003-06-13 01:41:57.000000000 +0100
+++ dvbplayer.c 2003-06-13 01:41:23.000000000 +0100
@@ -489,6 +489,8 @@
LOG_ERROR;
break;
}
+ else
+ usleep(1000); // File reader had no data, sleep to let it catch up
}
else//XXX
usleep(1); // this keeps the CPU load low
Home |
Main Index |
Thread Index