Use the small font to display FPS in order to reduce the size of the debug view
This commit is contained in:
parent
2a66d53e8f
commit
c9a54b99d9
@ -1457,15 +1457,15 @@ void IrrDriver::setAmbientLight(const video::SColor &light)
|
||||
*/
|
||||
void IrrDriver::displayFPS()
|
||||
{
|
||||
gui::IGUIFont* font = GUIEngine::getFont();
|
||||
gui::IGUIFont* font = GUIEngine::getSmallFont();
|
||||
|
||||
if(UserConfigParams::m_artist_debug_mode)
|
||||
{
|
||||
GL32_draw2DRectangle(video::SColor(150, 96, 74, 196),core::rect< s32 >(75,0,1100,50),NULL);
|
||||
GL32_draw2DRectangle(video::SColor(150, 96, 74, 196),core::rect< s32 >(75,0,1100,40),NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
GL32_draw2DRectangle(video::SColor(150, 96, 74, 196),core::rect< s32 >(75,0,900,50),NULL);
|
||||
GL32_draw2DRectangle(video::SColor(150, 96, 74, 196),core::rect< s32 >(75,0,900,40),NULL);
|
||||
}
|
||||
// We will let pass some time to let things settle before trusting FPS counter
|
||||
// even if we also ignore fps = 1, which tends to happen in first checks
|
||||
|
Loading…
Reference in New Issue
Block a user