Feature: Framerate display window (#6822)
Frame rate and various game loop/graphics timing measurements and graphs. Accessible via the Help menu, and can print some stats in the console via the fps command.
This commit is contained in:

committed by
Patric Stout

parent
a3d1950b65
commit
2a868b9f3b
@@ -15,6 +15,7 @@
|
||||
#include "demands.h"
|
||||
#include "mcf.h"
|
||||
#include "flowmapper.h"
|
||||
#include "../framerate_type.h"
|
||||
|
||||
#include "../safeguards.h"
|
||||
|
||||
@@ -151,6 +152,7 @@ void OnTick_LinkGraph()
|
||||
if (offset == 0) {
|
||||
LinkGraphSchedule::instance.SpawnNext();
|
||||
} else if (offset == _settings_game.linkgraph.recalc_interval / 2) {
|
||||
PerformanceMeasurer framerate(PFE_GL_LINKGRAPH);
|
||||
LinkGraphSchedule::instance.JoinNext();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user