Remove MaxFPS limit during login, teleports, and logout.

meow-7.2.2
Don Kjer 2012-07-13 02:54:48 +00:00
parent 3c9c7036fe
commit 5a473a42a6
1 changed files with 6 additions and 1 deletions

View File

@ -1492,7 +1492,12 @@ bool LLAppViewer::mainLoop()
// Limit FPS
F32 max_fps = gSavedSettings.getF32("MaxFPS");
if (max_fps > F_APPROXIMATELY_ZERO)
// Only limit FPS when we are actually rendering something. Otherwise
// logins, logouts and teleports take much longer to complete.
if (max_fps > F_APPROXIMATELY_ZERO &&
LLStartUp::getStartupState() == STATE_STARTED &&
!gTeleportDisplay &&
!logoutRequestSent())
{
// Sleep a while to limit frame rate.
F32 min_frame_time = 1.f / max_fps;