Closed comm0 closed 1 year ago
to avoid looping all creatures at once, it would take more time and probably lag
to avoid looping all creatures at once, it would take more time and probably lag
- nekiro
Isnt TFS single threaded after all? Anyway no matter of container type (or container usage like there?) it will be proceeded one by one. Am I right?
to avoid looping all creatures at once, it would take more time and probably lag
- nekiro
Isnt TFS single threaded after all? Anyway no matter of container type (or container usage like there?) it will be proceeded one by one. Am I right?
yea thats exactly why we dont loop everything at once, to avoid it being too slow and delay the single thread
As in the title. Then it is being filled on random positions.
Why such array of list is used and then filled like that? What are the benefits?
https://github.com/otland/forgottenserver/blob/c274252b4a00be243564d2f1d8d86beed2bc3042/src/game.cpp#L3886