MCPcopy Create free account
hub / github.com/axmolengine/axmol / commandFpsSubCommandOnOff

Method commandFpsSubCommandOnOff

core/base/Console.cpp:1052–1058  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1050}
1051
1052void Console::commandFpsSubCommandOnOff(socket_native_type /*fd*/, std::string_view args)
1053{
1054 bool state = (args.compare("on") == 0);
1055 Director* dir = Director::getInstance();
1056 Scheduler* sched = dir->getScheduler();
1057 sched->runOnAxmolThread(std::bind(&Director::setStatsDisplay, dir, state));
1058}
1059
1060void Console::commandHelp(socket_native_type fd, std::string_view /*args*/)
1061{

Callers

nothing calls this directly

Calls 3

getInstanceFunction · 0.85
runOnAxmolThreadMethod · 0.80
compareMethod · 0.45

Tested by

no test coverage detected