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.
This commit is contained in:
Campbell Barton 2024-06-08 13:32:26 +10:00
parent 4547f4106a
commit 09ae9377f1

@ -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)