cocos2d/cocos2d-x — pull request #8845 by dsternfeld (2014-10-19 01:17:50+00:00)
Title: Decoupling the calculation of FPS from displaying FPS

Prior to this change the functions Director::getSecondsPerFrame and Director::getFrameRate returned garbage data unless _displayStats was set to true. This makes it so getSecondsPerFrame and getFrameRate are usable even when you aren't visually displaying them on the screen by decoupling the calculation from the debug rendering.