Fps

From Bennu Wiki
Revision as of 14:47, 10 February 2012 by 68.98.25.49 (talk) (→‎Definition)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Up to Global Variables



Definition

INT fps

The global variable fps holds the current frames per second on which Bennu is running. This means how many times a frame is executed every second and how many times the screen is updated every second.

If a different FPS is needed, the target FPS can be altered by use of set_fps().

If a more accurate FPS is needed, use frame_time to calculate it.

If you need to view the FPS in-game, please use the code (in a loop): write_int(0,0,0,0,&fps);


Global variables
ArgcArgvAsciiCdinfoDump_typeExit_statusFadingFileinfoFocus_statusFpsFrame_timeFull_screenGraph_modeM7MouseMouse_statusOs_idRegex_regRestore_typeScale_modeScale_resolutionScale_resolution_aspectratioScale_resolution_orientationScan_codeScrollShift_statusSound_channelsSound_freqSound_modeText_flagsText_zTimerWindow_status