|
Author |
Topic: getting frames per second (Read 570 times) |
|
mflux
|
getting frames per second
« on: May 5th, 2004, 8:48am » |
|
quick quesiton: what's a good/accurate way of getting the actual frames per second that's draw onto the screen? thanks okay, to clarifty... I'm adding up frames that are drawn until one second has passed, then I println that number. However, 30 FPS just doesn't "FEEL" like 30 fps, know what I mean? Movies run at 30fps, but when my program is forced to run at 30 fps, it looks very choppy.
|
« Last Edit: May 5th, 2004, 8:50am by mflux » |
|
|
|
|
TomC
|
Re: getting frames per second
« Reply #1 on: May 5th, 2004, 10:52am » |
|
Well, I think calling framerate() without any arguments will return a moving average of fps (over the last ten frames or so, I think). Are you drawing different things in each frame? If you have a lot of variation in framerate, you might want to set it lower so that it has a better chance of remaining constant.
|
|
|
|
|