Map rollback pegs CPU at 100% #652
Replies: 4 comments
-
Not sure wheter to tag this as a bug or enhancement. |
Beta Was this translation helpful? Give feedback.
-
Neither really... it's a performance issue |
Beta Was this translation helpful? Give feedback.
-
Rollback comes from ancient times when map change was not implemented in aos servers and it was the only way to reset a map or load a new one. IMHO there is no need to invest further time into the script, also it should be removed from the scripts list in the default config.toml as it is really rarely needed at all (only use i can think of right now is the /rollmap command on a build server). Also beside CPU it consumes lots of memory (i guess because non-surface-blocks will be loaded into memory). |
Beta Was this translation helpful? Give feedback.
-
I don't think it's useful to roll back whole maps, or roll over one map with another map, but I believe it can be useful to roll back select parts of the map, for example after excessive destruction or between rounds. |
Beta Was this translation helpful? Give feedback.
-
And takes a loong time... Might be worth looking at the tight loops and putting them into Cython
Beta Was this translation helpful? Give feedback.
All reactions