Make the onscreen fps display toggleable via a boolean property.
This commit is contained in:
parent
8e1482f746
commit
1fa0f4157c
1 changed files with 1 additions and 7 deletions
|
@ -721,12 +721,7 @@ 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 ) ) {
|
||||||
|
|
||||||
#define DISPLAY_COUNTER
|
|
||||||
#ifdef DISPLAY_COUNTER
|
|
||||||
else
|
|
||||||
{
|
|
||||||
char buf[64];
|
char buf[64];
|
||||||
float fps = get_frame_rate();
|
float fps = get_frame_rate();
|
||||||
// float tris = fps * get_vfc_tris_drawn();
|
// float tris = fps * get_vfc_tris_drawn();
|
||||||
|
@ -757,7 +752,6 @@ void fgCockpitUpdate( void ) {
|
||||||
glMatrixMode( GL_MODELVIEW );
|
glMatrixMode( GL_MODELVIEW );
|
||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
}
|
}
|
||||||
#endif // #ifdef DISPLAY_COUNTER
|
|
||||||
|
|
||||||
glViewport( 0, 0, iwidth, iheight );
|
glViewport( 0, 0, iwidth, iheight );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue