Tbol
Well-Known Member
- Joined
- Apr 7, 2019
- Messages
- 625
- Reaction score
- 71
[No, using new distro is not the option, sticking with legendary tfs 1.2, so any optimization comits would be appreciated, but legit ones that are tested]
Code:
[22/09/2025 18:06:07]
Thread: 1 Cpu usage: 94.0832% Idle: 5.35844% Other: 0.55837%
Time (ms) Calls Rel usage % Real usage % Description
5586 295 19.79187% 18.62082% std::bind(&Game::checkCreatures, this, (index + 1) % EVENT_CREATURECOUNT)
4999 91145 17.71325% 16.66519% std::bind(&Game::checkCreatureWalk, &g_game, getID())
3621 29551 12.83180% 12.07257% std::bind(&Game::updateCreatureWalk, &g_game, getID())
2897 1720 10.26586% 9.65845% functor
2319 1792 8.21824% 7.73198% std::bind(&Game::checkPlayersAttack, this)
1956 16016 6.93175% 6.52161% &Game::playerSay
1658 119 5.87537% 5.52773% std::bind(&Game::checkDecay, this)
1139 45850 4.03695% 3.79809% std::bind(&Game::checkCreatureAttack, &g_game, getID())
952 1809 3.37476% 3.17508% &Game::parsePlayerExtendedOpcode
782 10892 2.77308% 2.60900% std::bind(&LuaEnvironment::executeTimerEvent, &g_luaEnvironment, lastTimerEventId)
686 3358 2.43282% 2.28887% std::bind(&Spawn::scheduleSpawn, this, spawnId, sb, interval - 1400)
653 1160 2.31692% 2.17983% std::bind(&Game::executeDeath, &g_game, getID())
564 5437 1.99918% 1.88089% std::bind(&ProtocolGame::parseNewWalk, getThis(), playerWalkId, predictiveWalkId, playerId, playerPosition, flags, path)
121 3400 0.43089% 0.40539% &Game::playerUseItem
84 1647 0.30066% 0.28287% &Game::playerSetAttackedCreature
47 2733 0.16898% 0.15898% std::bind(&Spawn::checkSpawn, this)
44 17451 0.15692% 0.14764% std::bind(&ProtocolGame::sendNewPing, getThis(), pingId)
37 2039 0.13223% 0.12440% &Game::playerTurn
36 17451 0.12937% 0.12171% &Game::playerReceiveNewPing