From 43c19b7b4866b01398465d52c86c720837bb269f Mon Sep 17 00:00:00 2001 From: peterhinch Date: Fri, 31 Mar 2023 14:11:44 +0100 Subject: [PATCH] core/ugui.py: Remove gc threshold setting (iss 27). --- gui/core/ugui.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/gui/core/ugui.py b/gui/core/ugui.py index 110b036..59677d0 100644 --- a/gui/core/ugui.py +++ b/gui/core/ugui.py @@ -533,8 +533,6 @@ class Screen: while Screen.do_gc: await asyncio.sleep_ms(500) gc.collect() - if hasattr(gc, 'threshold'): - gc.threshold(gc.mem_free() // 4 + gc.mem_alloc()) n += 1 n &= 0x1F _vb and (not n) and print("Free RAM", gc.mem_free())