Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProblem with class COXHyperLink (from UT) in Win2K/XP Pin
Alex Cramer7-May-02 17:51
Alex Cramer7-May-02 17:51 
GeneralRe: Problem with class COXHyperLink (from UT) in Win2K/XP Pin
13-May-02 10:51
suss13-May-02 10:51 
GeneralCompile Error Help me please Pin
7-May-02 17:24
suss7-May-02 17:24 
GeneralRe: Compile Error Help me please Pin
Maxwell Chen7-May-02 18:18
Maxwell Chen7-May-02 18:18 
Generalno cursor Pin
Ryan28457-May-02 17:16
Ryan28457-May-02 17:16 
GeneralRe: no cursor Pin
Mike Nordell9-May-02 21:29
Mike Nordell9-May-02 21:29 
GeneralMeasuring FPS Pin
Coremn7-May-02 16:45
Coremn7-May-02 16:45 
GeneralRe: Measuring FPS Pin
Paul M Watt7-May-02 16:54
mentorPaul M Watt7-May-02 16:54 
The highest resolution timer that you can get is from a call to QueryPerformanceCounter. If you divide the result from this value by the result you get from QueryPerformanceFrequency, you will have a value in milliseconds.

Not all machines have access to a performance counter, therefore your next best choice is the multimedia counter. You can access this with a call to timeGetTime.

There is a really good timer function that is written inside of a set of DirectX utility classes in the SDK. It can be found in the samples/multimedia/Common/src folder and it is the dxutil.cpp file.
Also in the d3dutil.cpp file of the same directory there is some good code to generate the fps for a render sequence.

Good Luck!


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: Measuring FPS Pin
Coremn7-May-02 18:41
Coremn7-May-02 18:41 
GeneralRe: Measuring FPS Pin
Mike Nordell9-May-02 21:33
Mike Nordell9-May-02 21:33 
GeneralRe: Measuring FPS Pin
vijayaramaraju7-May-02 19:33
vijayaramaraju7-May-02 19:33 
GeneralRe: Measuring FPS Pin
l a u r e n7-May-02 21:13
l a u r e n7-May-02 21:13 
GeneralWindows Media skins or Winamp skins on my SDI application!!!! Pin
Kind7-May-02 16:16
Kind7-May-02 16:16 
GeneralImage constructor returns OutOfMemory status in GDI+ Pin
Softomatix7-May-02 15:59
Softomatix7-May-02 15:59 
QuestionHow to implement "Program Rollback"? Pin
hex7-May-02 15:40
hex7-May-02 15:40 
AnswerRe: How to implement "Program Rollback"? Pin
Matt Gullett7-May-02 15:55
Matt Gullett7-May-02 15:55 
GeneralRe: How to implement "Program Rollback"? Pin
hex7-May-02 16:07
hex7-May-02 16:07 
GeneralRe: How to implement "Program Rollback"? Pin
Matt Gullett7-May-02 16:58
Matt Gullett7-May-02 16:58 
GeneralRe: How to implement "Program Rollback"? Pin
Niklas L8-May-02 1:28
Niklas L8-May-02 1:28 
AnswerRe: How to implement "Program Rollback"? Pin
KarstenK8-May-02 0:36
mveKarstenK8-May-02 0:36 
AnswerRe: How to implement "Program Rollback"? Pin
Mike Nordell9-May-02 21:34
Mike Nordell9-May-02 21:34 
GeneralLook at this horrible casting Pin
NicholasCougar7-May-02 15:36
NicholasCougar7-May-02 15:36 
GeneralRe: Look at this horrible casting Pin
Tim Smith7-May-02 15:37
Tim Smith7-May-02 15:37 
GeneralRe: Look at this horrible casting Pin
NicholasCougar7-May-02 16:06
NicholasCougar7-May-02 16:06 
GeneralRe: Look at this horrible casting Pin
Mike Nordell9-May-02 21:40
Mike Nordell9-May-02 21:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.