Audio/video problem with CPU throttling
Posted: 17 Aug 2009 23:12
Hello folks,
I have a major issue with, apart from thet, this great player.
The problem is that I get a slow motion video and the audio stutters when CPU throttling is enabled.
I have dual core 3.1GHz CPU running XP SP3, and because VLc playback barely uses any CPU, it slows down to about 778MHz.
If VLC needed more power to play a movie, it would get it.
I've read other topics with similiar problems, but mod's response:
"I fail to see why VLC should implement hardware-specific code for stupid hardware that don't want to use normal OS functions."
is complete rubbish. The throttling is done using "normal" OS functions, and if any app needs more power it just gets it, the CPU is set to 1.9GHz or to max 3.11GHz.
Why I'm starting this topic is because a movie playback does not require all the power CPU has, therefore running it on full throttle makes no sense.
I have no other multimedia app that has any problem with that and I'm sure it requires no "hardware-specific code for stupid hardware" because all the throttling is done on OS level, therefore a low level.
It seems like VLC takes those 778MHz, says to itself "oh it's not enough, but I won't say a word, just do as much as I can with it" and plays badly.
I do not understand this behaviour and I cannot see a reason for it, because it would indicate tha VLC has it's own internal kind of throttling that prevents it from using all the CPU power it has available.
It happens to other people on different Windows so it's not OS specific, it's not hardware specific (as throttling is not done by some custom driver but by the OS itself) and seemingly, it's only VLC specific.
And lastly, I'm not here to moan or to complain, I'd like some assistance to find possible solution for this issue, as neither I would like to abandon VLC nor to waste 50W on CPU for hours every day.
edit:
Well, I found (in the Microsoft Knowledge Base) that such a problem may occur because the application "cannot correctly capture timing information". So the VLC "thinks" that CPU is running at 3.1GHz while it's running at 778MHz? That would explain it... But it would mean that VLC is using some "wrong" method of capturing the timings.
However, they suggest:
I have a major issue with, apart from thet, this great player.
The problem is that I get a slow motion video and the audio stutters when CPU throttling is enabled.
I have dual core 3.1GHz CPU running XP SP3, and because VLc playback barely uses any CPU, it slows down to about 778MHz.
If VLC needed more power to play a movie, it would get it.
I've read other topics with similiar problems, but mod's response:
"I fail to see why VLC should implement hardware-specific code for stupid hardware that don't want to use normal OS functions."
is complete rubbish. The throttling is done using "normal" OS functions, and if any app needs more power it just gets it, the CPU is set to 1.9GHz or to max 3.11GHz.
Why I'm starting this topic is because a movie playback does not require all the power CPU has, therefore running it on full throttle makes no sense.
I have no other multimedia app that has any problem with that and I'm sure it requires no "hardware-specific code for stupid hardware" because all the throttling is done on OS level, therefore a low level.
It seems like VLC takes those 778MHz, says to itself "oh it's not enough, but I won't say a word, just do as much as I can with it" and plays badly.
I do not understand this behaviour and I cannot see a reason for it, because it would indicate tha VLC has it's own internal kind of throttling that prevents it from using all the CPU power it has available.
It happens to other people on different Windows so it's not OS specific, it's not hardware specific (as throttling is not done by some custom driver but by the OS itself) and seemingly, it's only VLC specific.
And lastly, I'm not here to moan or to complain, I'd like some assistance to find possible solution for this issue, as neither I would like to abandon VLC nor to waste 50W on CPU for hours every day.
edit:
Well, I found (in the Microsoft Knowledge Base) that such a problem may occur because the application "cannot correctly capture timing information". So the VLC "thinks" that CPU is running at 3.1GHz while it's running at 778MHz? That would explain it... But it would mean that VLC is using some "wrong" method of capturing the timings.
However, they suggest:
If you are a developer who is using the RDTSC (Real Time Stamp Counter) instruction to compute timing, visit the following Microsoft Developer Network (MSDN) Web site for information about the QueryPerformanceCounter function:
http://msdn2.microsoft.com/en-us/library/ms644904.aspx