diff --git a/src/randopix.nim b/src/randopix.nim index cf4afe7..bdb5aa5 100644 --- a/src/randopix.nim +++ b/src/randopix.nim @@ -120,7 +120,9 @@ proc updateImage(image: Image): bool = return false proc timedUpdate(image: Image): bool = - discard updateImage(image); + discard updateImage(image) + # Force garbage collection now. Otherwise the RAM will fill up until the GC is triggered. + GC_fullCollect() updateTimeout = int(timeoutAdd(uint32(args.timeout), timedUpdate, image)) return false diff --git a/src/randopix.nim.cfg b/src/randopix.nim.cfg index 29155e5..a3c0669 100644 --- a/src/randopix.nim.cfg +++ b/src/randopix.nim.cfg @@ -1,3 +1,3 @@ threads:on d:ssl -gc:arc \ No newline at end of file +# gc:arc \ No newline at end of file