Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Lesson 23

This topic is 6546 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''ve got a couple questions regarding Lesson 23. Right now I''m trying to pull out the timer stuff so I can put an FPS counter into the current game I''m doing just to get a handle on some OpenGL concepts (its a clone of the extremely rare (and extremely simple Atari 2600 game Boing which you can probably only find and run on an emulator, I think only 1 cart was ever produced). I was looking through the code in the downloadable CHM file (very very convenient BTW, I wish more people made them). First off, I found an error. This line is missing a parenthesis: while(TimerGetTime()GetDeviceState(sizeof(buffer), &buffer); That shouldn''t compile (I haven''t tried, I''m using my own win32 shell app). Anyhow, the real question is... is the timer code in his tutorial complete? Near the bottom of the code he grabs the value of the timer.... and proceeds to do absolutely nothing with it. He does absolutely nothing with the value he gets... I know the basic workings of the performance counter now and I can get the math to work out a frame/sec rating, but I''m just wondering if I''m missing some code? He has float start = TimerGetTime(); and then the variable start is not referenced again anywhere in the program... ----------------------- Go for it. OtakuCODE

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!