consider entire layout for gc
this fixes an issue where in some situations tiles would get erroneously garbage collected and then immediately recreated, forming an infinite loop and leading to 100% cpu load
This commit is contained in:
parent
fff7fc22fa
commit
1e59ab9500
1 changed files with 1 additions and 1 deletions
2
main.ml
2
main.ml
|
@ -1216,7 +1216,7 @@ let act cmds =
|
||||||
puttileopaque l col row gen cs angle opaque size t;
|
puttileopaque l col row gen cs angle opaque size t;
|
||||||
S.memused := !S.memused + size;
|
S.memused := !S.memused + size;
|
||||||
!S.uioh#infochanged Memused;
|
!S.uioh#infochanged Memused;
|
||||||
gctilesnotinlayout !S.layout;
|
gctilesnotinlayout layout;
|
||||||
Queue.push ((l.pageno, gen, cs, angle, l.pagew, l.pageh, col, row),
|
Queue.push ((l.pageno, gen, cs, angle, l.pagew, l.pageh, col, row),
|
||||||
opaque, size) S.tilelru;
|
opaque, size) S.tilelru;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue