My First Attempt at a Game...
Okay, so I've hardly ever used C++ before yesterday, but found out that using DirectX in C++ is actually quite similar to using DirectX in VB, at least, the way you blt things out and all that. So, I spent all of last night learning how to set up a C++ window and initializing DirectX and all that, and I've started on a simple space shooter.
The one thing I'm worried about is as to whether or not I'm calculating my FPS correctly. The code I'm using is as follows:
The equation in the if is just checking to see if it's been a second since start time and end time. I'm not sure if it's exactly a second or not though, is there a better way to do this?
if((((End.QuadPart - StartTime.QuadPart) / 500000) / 2) / 5 == 1)
FrameRate = Frames;
Frames = 0;
BTW, right now I'm hitting a max FPS of 85 with 2500 moving sprites on the screen... Is this good for a C++ DirectX program?