Advertisement

FPS?

Started by April 22, 2002 08:10 PM
86 comments, last by Wachar 22 years, 7 months ago
quote: Original post by Wachar
OIC! It sets a maximum time the frames can pass. And, the while loop consists of the GetTickCount, and the main game loop. I didn''t know that the drawing was before the while loop. I didn''t think about that while starts from there. Not like a do..while. Thanks! I think I get it now! Ciao!


It sets the _minimum_ time a frame can take. The maximum is unbounded. This approach allows for any FPS under 30. 30 satisfies, as does 29, 28, etc.

The while loop does nothing but test it''s condition until it''s condition is true. This is equilvalent to waiting. The main game loop isn''t in the same while loop as the GetTickCount. The wait loop is a second loop called from inside the game loop.

I think you should take the advice Kwizatz gave you and back up to an introductory C book for a while. You''re trying to learn game logic, but you''re obviously still misunderstanding basic C syntax. You must crawl before you run.
Some one said that you "couldn''t" set the minimum fps. As for the second part of your post, that''s what I was explaining about in MY second part of MY post. That I had overlooked that.

So, I''m basically correct?


Ciao!


Wachar's Eternity <-<-<-<-<- Me own site!
Advertisement
quote: Original post by Wachar
Some one said that you "couldn''t" set the minimum fps. As for the second part of your post, that''s what I was explaining about in MY second part of MY post. That I had overlooked that.

So, I''m basically correct?



Mostly, but the terminology is still somewhat off.

There are two measurements involved. FPS is the number of frames per second.

''frame time'' which was what it sounded like you were referring to, is the amount of time it takes to draw one frame. Increasing frame time decreases FPS.

Ok thanks!


Ciao!


Wachar's Eternity <-<-<-<-<- Me own site!
*Sigh!* I thought this topic would never end. Nor, did I think my stupidity about FPS would end. But they both have. Here''s my closing of this topic.

I would like to thank you all who posted replies here(mostly all) and gave me a link to better understanding. I''m sorry for my everlasting stupidity of asking questions over and over again, but it would not register. And, the reason for asking over and over again is because, I couldn''t anything on the net close enough to what I wanted answers to.

Also, to the moderators: Thanks for not closing this post early!

-=-- In everlasting debt, me --=-


Ciao!


Wachar's Eternity <-<-<-<-<- Me own site!
quote: I said,
That''s my last post on the matter.


I lied.

As a reassurance Wachar, understand that everyone has concepts that are hard for them when they start out. By asking questions here you''ve taken a step in the right direction, so don''t beat yourself up over it.

If you want an example of how I was as a newbie, check out the profiles of my aliases: Newbie4Now and Later. I honestly don''t know what posessed me to post some of that crap, but I''m glad that Kevin didn''t ban me for it. It''s turned out that GameDev has become my most-frequented site, and I enjoy contributing what I can to the community.

Peace,
ZE.

//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links

[if you have a link proposal, email me.]

[twitter]warrenm[/twitter]

Advertisement
I still think you should learn C/C++ from a C/C++ book and not from TOTWGPG, its just friendly advice, see the smile
-->

I''ve told you, I already have. From 3 C++ books to be exact.



What does it take to be a good game programmer?
---
Good insight,
good knowledge,
and of course,
big money deposits!


Wachar's Eternity <-<-<-<-<- Me own site!

This topic is closed to new replies.

Advertisement