There is a serious error in the source or datapack that is consuming a lot of CPUHello everyone, I'm looking for someone able to optimize TFS 1.3 and make it run on multi cores.
I think it really is a good solution in the medium and long term, as it will not required such an expensive dedicated.
View attachment 79254
you will certainly have to pay a lot more to anyone willing to make tfs multi-threaded (if anyone is crazy enough to accept this job), than the amount of money will would waste paying for a better dedicated server
in short words: it's not easy and that is why it wasn't done in decades
If you want to use parallelism you'll be good to go with just the C++17 algorithms library.I know it is not a discussion post, and we know that the work of Multi Threading is quite complicated and impractical in many cases.
- What about using OpenMP?:
![]()
Or:
First of all, tfs is not single-threaded and there are no other bottlenecks (except db maybe?) that could be solved with mt.you will certainly have to pay a lot more to anyone willing to make tfs multi-threaded (if anyone is crazy enough to accept this job), than the amount of money will would waste paying for a better dedicated server
in short words: it's not easy and that is why it wasn't done in decades
3876 296 23.32684% 12.92029% std::bind(&Game::checkCreatures, this, (index + 1) % EVENT_CREATURECOUNT)
2747 47142 16.53197% 9.15674% std::bind(&Game::checkCreatureWalk, &g_game, getID())
2623 26006 15.79142% 8.74657% std::bind(&Game::checkCreatureAttack, &g_game, getID())