perf(ui): reduce canvas max history to 100

This should further insulate canvas from excessive GCs.
This commit is contained in:
psychedelicious 2024-04-02 23:11:05 +11:00 committed by Kent Keirsey
parent 69ec14c7bb
commit b6ad33ac1a

View File

@ -37,7 +37,7 @@ import { CANVAS_GRID_SIZE_FINE } from './constants';
/**
* The maximum history length to keep in the past/future layer states.
*/
const MAX_HISTORY = 128;
const MAX_HISTORY = 100;
const initialLayerState: CanvasLayerState = {
objects: [],