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:
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)
|
||||
|
Loading…
Reference in New Issue
Block a user