1
0
Fork 0

Change the fps toggle property name a bit and add a toggle switch in the

gui/dialog/rendering box.
This commit is contained in:
curt 2004-06-14 16:38:44 +00:00
parent 1fa0f4157c
commit 0fa47dbbdc

View file

@ -721,12 +721,11 @@ void fgCockpitUpdate( void ) {
// This will check the global hud linked list pointer. // This will check the global hud linked list pointer.
// If these is anything to draw it will. // If these is anything to draw it will.
fgUpdateHUD(); fgUpdateHUD();
} else if ( fgGetBool( "/sim/hud/draw-fps-when-off", false ) ) { }
if ( fgGetBool( "/sim/hud/draw-fps", false ) ) {
char buf[64]; char buf[64];
float fps = get_frame_rate(); float fps = get_frame_rate();
// float tris = fps * get_vfc_tris_drawn();
// float culled = fps * get_vfc_tris_culled();
// sprintf(buf,"%-4.1f %7.0f %7.0f", fps, tris, culled);
sprintf(buf,"%-5.1f", fps); sprintf(buf,"%-5.1f", fps);
glMatrixMode( GL_PROJECTION ); glMatrixMode( GL_PROJECTION );