I just read the third part of this series and checked out the code for the article and it seems to be running awfully slow. The frame rate hangs around 5. This seems pretty odd since the CreateFlags for the device do specify HardwareVertexProcessing and PureDevice. I don't see how displaying a single rotating cube can be this slow.

Any ideas how to get this to run faster?