From 65fb42726937e60435210e14c4b701df372d19de Mon Sep 17 00:00:00 2001 From: okahilak <49641103+okahilak@users.noreply.github.com> Date: Mon, 19 Jul 2021 03:35:56 +0300 Subject: [PATCH] MOD: Increase SLEEP_NAVIGATION parameter to decrease CPU load during navigation (#292) --- invesalius/constants.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/invesalius/constants.py b/invesalius/constants.py index 7e866ff..aaf23aa 100644 --- a/invesalius/constants.py +++ b/invesalius/constants.py @@ -788,7 +788,10 @@ PEEL_DEPTH = 5 MAX_PEEL_DEPTH = 30 SEED_OFFSET = 15 SEED_RADIUS = 1.5 -SLEEP_NAVIGATION = 0.1 + +# Increased the default sleep parameter from 0.1 to 0.15 to decrease CPU load during navigation. +SLEEP_NAVIGATION = 0.15 + BRAIN_OPACITY = 0.5 N_CPU = psutil.cpu_count() TREKKER_CONFIG = {'seed_max': 1, 'step_size': 0.1, 'min_fod': 0.1, 'probe_quality': 3, -- libgit2 0.21.2