Archive: AVS wait for refresh/CPU usage bug


5th March 2007 00:04 UTC

AVS wait for refresh/CPU usage bug
hello.
when running the attached preset at 128x96 (Pixel doubling enabled) with Wait for retrace disabled, I get a frame rate of ~370 FPS and a CPU usage of ~12% with no song playing
with Wait for retrace enabled, I get a frame rate of ~60 FPS, with a CPU usage of ~43%
I've got a P4 2.59 GHz
that's an increase of ~2110% work per frame
how does that happen?


13th March 2007 23:40 UTC

yikes!!!
I've noticed the same thing happening on my pc.
but sadly my computer is crap anyway.
another interesting bug i found was that when i ran on a resolution and bit depth of 1204,768,24
it caused a crash in the gdi.exe module of my computer and then after a battle of program crashes it finally sends a bsod saying that windows is currently unstable.

might be based on same problem.

also there is something i noticed.
I've heard there is a bug in all pentium processors called the fDIV bug that cause divisional errors within the processor itself. that might cause avs to go haywire no?


14th March 2007 02:09 UTC

Re: yikes!!!

Originally posted by Nanakiwurkz
I've heard there is a bug in all pentium processors called the fDIV bug that cause divisional errors within the processor itself. that might cause avs to go haywire no?
The Pentium FDIV bug was a bug in Intel's original Pentium floating point unit. Certain floating point division operations performed with these processors would produce incorrect results.
According to Intel, there were a few missing entries in the lookup table used by the divide operation algorithm.
Publicly, Intel acknowledged the floating point flaw but claimed that it was not serious and would not affect most users. Intel offered to replace processors to users who could prove that they were affected. However, although most independent estimates found the bug to be of little importance and have negligible effect on most users, it has caused a great public outcry.
On December 20, 1994 Intel offered to replace all flawed Pentium processors on the basis of request, in response to mounting public pressure. This had a huge potential cost to the company, although it turned out that only a small fraction of Pentium owners bothered to get their chips replaced.
This problem occurred only on some models of the original Pentium processor. Any Pentium family processor with a clock speed of at least 120 MHz is new enough not to have this bug.
On appropriate models, the Intel Processor Frequency ID Utility checks for the presence of this bug.

14th March 2007 13:18 UTC

I get a frame rate of ~370 FPS and a CPU usage of ~12% with no song playing
simply because nothing is being processed, its processing blank frames. obviously pixel doubling does something to the performance.. but for me i got 120 - 140 fps with wait for retrace disabled, and 75fps with it enabled.. and im running a 2.5ghz intel celeron processor.
just a blank screen!

14th March 2007 18:13 UTC

read this thread about what WFR does.


16th March 2007 19:17 UTC

Originally posted by MaTTFURY
simply because nothing is being processed, its processing blank frames. obviously pixel doubling does something to the performance.. but for me i got 120 - 140 fps with wait for retrace disabled, and 75fps with it enabled.. and im running a 2.5ghz intel celeron processor.
just a blank screen!
yeah, it's me jacking around with superscopes. it's simply three SSCs, two take left-right audio channels, and are spectrograms, with colors that are opposites, then the colors are "added" together (so white is where the audio channels are the same), and the third is a simple center channel waveform

18th March 2007 15:41 UTC

It's not a bug, its just when stop playing a song, avs stops processing musical data therefore giving you a incomprehendable framerate...


20th March 2007 12:03 UTC

even playing a song, with the above settings, without wait for retrace I get 340 FPS with CPU utilization of 20%, and with wait for retrace I get 60 FPS with ~48% CPU utilization, an increase of 1360% work per frame


20th March 2007 18:02 UTC

Sorry but I don't see the problem and/or bug here.

This is just the expected behaviour, no?
WFR is more expensive than the raw mode. nothing new there..


21st March 2007 14:02 UTC

thats strange. when i have no music playing, i get a framerate of either <32, exactly 32 or exactly 64fps no matter what preset i have loaded, running a p4 2.8 at 500x350 with wait for retrace and pixel doubling disabled. a blank avs screen will run at a solid 64fps with no music and ~100fps when there is music playing. kinda the opposite of what's going on here.