To determine an FPS value in fantomEngine, a call to its
GetFPS method will return the current FPS value, as follows:
GetFPScall in the
fpsfield of the
Method OnRender:Int() fps = eng.GetFPS()
eng.Render() Return 0 End
OnRender method, we determine the current frames per second value that indicates how many times the game is able to display the content. We will later create a method to update the corresponding text object called
txtFPS. We also told the engine to render all objects in one batch.