CCDirector is a class in the Cocos2d-x game development library, written in C++. It is responsible for managing the game's scenes and game loop.
One useful method of the CCDirector class is setDisplayStats, which displays performance statistics such as FPS (frames per second), draw calls, and memory usage on the screen during gameplay. This can be helpful for monitoring the game's performance and optimizing it for better gameplay experience.
This code disables display statistics for the current instance of the CCDirector.
Package library: Cocos2d-x
C++ (Cpp) CCDirector::setDisplayStats - 30 examples found. These are the top rated real world C++ (Cpp) examples of CCDirector::setDisplayStats extracted from open source projects. You can rate examples to help us improve the quality of examples.