Google

Tuesday, December 30, 2008

How to calculate FPS

public UFOCanvas(Display d) {
super(true);
display = d;
// Set the frame rate (30 fps)
frameDelay = 33;
}

To get fps:

(1/frameDelay) x 1000
= (1/33)*1000
= 30 fps