mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
a6c91979af
There were two ways the canvas history could grow too large (past the `MAX_HISTORY` setting): - Sometimes, when pushing to history, we didn't `shift` an item out when we exceeded the max history size. - If the max history size was exceeded by more than one item, we still only `shift`, which removes one item. These issue could appear after an extended canvas session, resulting in a memory leak and recurring major GCs/browser performance issues. To fix these issues, a helper function is added for both past and future layer states, which uses slicing to ensure history never grows too large. |
||
---|---|---|
.. | ||
app | ||
assets | ||
backend | ||
configs | ||
frontend | ||
invocation_api | ||
version | ||
__init__.py |