From 09ae9377f1e86faf3dafd9c218713d121edce7d0 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 8 Jun 2024 13:32:26 +1000 Subject: [PATCH] Extensions: reduce the timer frequency to avoid too much overhead Since these actions are no longer blocking, 100 times a second could add unnecessary overhead (although updates are only shown when changes are detected). Nevertheless, reduce the frequency to 10 times a second. --- scripts/addons_core/bl_pkg/bl_extension_ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/addons_core/bl_pkg/bl_extension_ops.py b/scripts/addons_core/bl_pkg/bl_extension_ops.py index 78de2f02e4d..257ae990356 100644 --- a/scripts/addons_core/bl_pkg/bl_extension_ops.py +++ b/scripts/addons_core/bl_pkg/bl_extension_ops.py @@ -840,7 +840,7 @@ class CommandHandle: handle = CommandHandle() handle.cmd_batch = cmd_batch - handle.modal_timer = context.window_manager.event_timer_add(0.01, window=context.window) + handle.modal_timer = context.window_manager.event_timer_add(0.1, window=context.window) handle.wm = context.window_manager handle.wm.modal_handler_add(op)