Disable GC on every cycle, too much lag
This commit is contained in:
parent
17094a2988
commit
350c2438ad
@ -289,10 +289,6 @@ class Firmware:
|
|||||||
self._print_debug_cycle(init=True)
|
self._print_debug_cycle(init=True)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
# Generally speaking, the less stuff GC has to clean out,
|
|
||||||
# the faster it'll run. Start every cycle with a clean
|
|
||||||
# garbage bin to avoid random hiccups during keypress handling
|
|
||||||
gc.collect()
|
|
||||||
state_changed = False
|
state_changed = False
|
||||||
|
|
||||||
if self.split_type is not None and self.is_master:
|
if self.split_type is not None and self.is_master:
|
||||||
|
@ -6,7 +6,7 @@ from kmk.keys import KC
|
|||||||
|
|
||||||
keyboard = Firmware()
|
keyboard = Firmware()
|
||||||
|
|
||||||
keyboard.debug_enabled = True
|
keyboard.debug_enabled = False
|
||||||
keyboard.unicode_mode = UnicodeMode.LINUX
|
keyboard.unicode_mode = UnicodeMode.LINUX
|
||||||
keyboard.tap_time = 750
|
keyboard.tap_time = 750
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user