• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.X+ High CPU usage in checkCreatureWalk (TFS 1.5 Nekiro 8.60)

Dolot2003

New Member
Joined
Dec 29, 2018
Messages
1
Reaction score
0
Hello everyone,

I'm currently running a server using the TFS 1.5 8.60 (Nekiro Downgrade) and I'm facing significant CPU performance issues when the player count increases. Looking at the internal profiler, it seems that the A* pathfinding algorithm and creature walking logic are consuming the vast majority of my CPU resources.

Here is my current server profile output:

[01/07/2026 13:31:05]
Thread: 1 Cpu usage: 69.4008% Idle: 29.6636% Other: 0.935578% Players online: 249
Time (ms) Calls Rel usage % Real usage % Description
11081 750833 53.22691% 36.93993% std::bind(&Game::checkCreatureWalk, &g_game, getID())
2461 33043 11.82279% 8.20511% std::bind(&Game::updateCreatureWalk, &g_game, getID())
1766 300 8.48225% 5.88675% std::bind(&Game::checkCreatures, this, (index + 1) % EVENT_CREATURECOUNT)


As you can see, checkCreatureWalk is responsible for over 50% of the relative CPU usage. With around 250 players online, this is causing noticeable lag spikes.

I know there are already plenty of threads on OTLand discussing pathfinding and CPU optimization, and I've spent quite a bit of time reading through them. Unfortunately, it's very difficult to find solutions that are actually relevant to TFS 1.5 8.60 (Nekiro Downgrade). Many of the suggested fixes are outdated, incomplete, or no longer apply to this branch, while others don't seem to have any measurable effect or introduce new issues.

Has anyone encountered this issue on the Nekiro downgrade? Are there any known optimizations, patches, or configuration tweaks to reduce the CPU load caused by pathfinding and creature walking without breaking the core game mechanics?

If you've managed to improve the performance of checkCreatureWalk or the A* pathfinding system on this version, I'd really appreciate it if you could share your approach or point me to a patch that has been tested and proven to work.

Any help or suggestions on how to profile or optimize this further would be greatly appreciated.

Thanks in advance!
 
Back
Top