Hi !,
Someone has a function to display the FPS (frame per second) ?
Thanks a lot
========================Leyder Dylan (dylan.leyder@slug-production.be.tf http://users.skynet.be/fa550206/Slug-Production/Index.htm/
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
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911
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
-----------------------Go for it.OtakuCODE
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement