Yes, MDX is end-of-life, but I'd still like to write a short benchmark that spins a mesh at the highest frame rate the video card will allow. (This doesn't really simulate what a game would do, so it's more like measuring raw performance, like triangles per second.)
Obviously, to achieve the goal of a GPU-gated program, PresentParameters.PresentationInterval
should be Immediate
. What else do I have to do to keep one or more CPU cores from getting pegged?
I found a few articles about PeekMessage
on the Web, but (a) these seem to be focused on real applications rather than benchmarks--meaning VSYNC is on--and (b) PeekMessage
is returning true
extremely seldom in my tests.