Merge branch 'master' into jgrpp
# Conflicts: # src/console_cmds.cpp # src/landscape.cpp # src/linkgraph/linkgraphschedule.cpp # src/openttd.cpp # src/roadveh_cmd.cpp # src/toolbar_gui.cpp # src/train_cmd.cpp # src/vehicle.cpp # src/viewport.cpp # src/window_type.h
This commit is contained in:
@@ -64,6 +64,7 @@
|
||||
#include "subsidy_func.h"
|
||||
#include "gfx_layout.h"
|
||||
#include "viewport_sprite_sorter.h"
|
||||
#include "framerate_type.h"
|
||||
#include "programmable_signals.h"
|
||||
#include "smallmap_gui.h"
|
||||
#include "viewport_func.h"
|
||||
@@ -1510,6 +1511,14 @@ void StateGameLoop()
|
||||
|
||||
/* don't execute the state loop during pause */
|
||||
if (_pause_mode != PM_UNPAUSED) {
|
||||
PerformanceMeasurer::Paused(PFE_GAMELOOP);
|
||||
PerformanceMeasurer::Paused(PFE_GL_ECONOMY);
|
||||
PerformanceMeasurer::Paused(PFE_GL_TRAINS);
|
||||
PerformanceMeasurer::Paused(PFE_GL_ROADVEHS);
|
||||
PerformanceMeasurer::Paused(PFE_GL_SHIPS);
|
||||
PerformanceMeasurer::Paused(PFE_GL_AIRCRAFT);
|
||||
PerformanceMeasurer::Paused(PFE_GL_LANDSCAPE);
|
||||
|
||||
UpdateLandscapingLimits();
|
||||
#ifndef DEBUG_DUMP_COMMANDS
|
||||
Game::GameLoop();
|
||||
@@ -1517,6 +1526,9 @@ void StateGameLoop()
|
||||
CallWindowTickEvent();
|
||||
return;
|
||||
}
|
||||
|
||||
PerformanceMeasurer framerate(PFE_GAMELOOP);
|
||||
PerformanceAccumulator::Reset(PFE_GL_LANDSCAPE);
|
||||
if (HasModalProgress()) return;
|
||||
|
||||
Layouter::ReduceLineCache();
|
||||
|
Reference in New Issue
Block a user