Fixed FPS counter

This commit is contained in:
Kayne Ruse
2013-06-04 21:28:00 +10:00
parent a260f29d4f
commit 0cfb47e641
+2 -1
View File
@@ -40,7 +40,7 @@ TestSystems::~TestSystems() {
//-------------------------
void TestSystems::FrameStart() {
FrameRate::Calculate();
//
}
void TestSystems::Update(double delta) {
@@ -59,6 +59,7 @@ string IToS(int i) {
}
void TestSystems::Render(SDL_Surface* const screen) {
FrameRate::Calculate();
playerMgr.DrawAllTo(screen);
font.DrawStringTo("FPS: " + IToS(FrameRate::GetFrameRate()), screen, 16, 16);
}