Ticket #441 (new task)
Run the GC occasionally
| Reported by: | Philip | Owned by: | Philip |
|---|---|---|---|
| Priority: | Nice to Have | Milestone: | Backlog |
| Component: | UI & Simulation | Keywords: | |
| Cc: |
Description
JS won't automatically run the GC until it's run out of memory, which might be an inconvenient time to freeze the simulation. We should probably call it manually at regular intervals, when it's least likely to cause disruption (e.g. during a frame when it's not also busy doing all the simulation computation), to make it more predictable.
Change History
comment:3 Changed 2 years ago by historic_bruno
This seems to be partially fixed now? At least for simulation and AI scripts.
I notice a stutter if I'm, for example, scrolling the map during a game. This is due to the GUI GC running and it's enough to be annoying. The larger the runtime size, the more noticeable the stutter. If running the GC more regularly (perhaps as often as the simulation and AI scripts) would fix that, then it's an idea.
Not sure the impact of GC on random map generation, but it's worth examining.

Milestone Unclassified deleted