🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
it''s not that tough, you just use GetTickCount(), or whatever to get the miliseconds then you can find how long it took to process the frame.
JoeMont001@aol.com www.polarisoft.n3.net
JoeMont001@aol.com www.polarisoft.n3.net
I recently added an FPS counter to my game, I''d be happy to show you what I did and such... it uses the performance counter if it is available, and I''ve put it in a class. The only problem you might have is displaying it... since I''m not using GLUT, I display the fps in the titlebar of my window, it you want to display it on a fullscreen app or something like that you''ll have to deal with the display stuff. Drop me an email if you''d like the code and an explanation (psudeocode) of how to use it to count FPS (not just rendering time altho you can do that as well).
-----------------------
Go for it.
OtakuCODE
-----------------------
Go for it.
OtakuCODE
Oh yeah, and you can reach me via email at esperan@1st.net
-----------------------
Go for it.
OtakuCODE
-----------------------
Go for it.
OtakuCODE
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement