Commit 4fd4699
OmniBar: kill startup re-render storm + stop getSettingValue deprecation spam
Two perf bugs that froze the browser tab ("Brave crashing"):
- _getSetting passed a 2nd arg to getSettingValue, which recent ComfyUI
deprecates and warns on EVERY call. Dropped the arg (fall back locally).
- Every C2C setting's onChange called _applyPositionAndMode synchronously, and
each call re-renders ALL sections (each reading many settings). ~50 settings
registering at startup => hundreds of full re-renders in one tick. Now
coalesced to one render per animation frame via rAF debounce.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
(cherry picked from commit 8cf65f5)1 parent 5a11356 commit 4fd4699
1 file changed
Lines changed: 19 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
| |||
902 | 905 | | |
903 | 906 | | |
904 | 907 | | |
| 908 | + | |
905 | 909 | | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
906 | 923 | | |
907 | | - | |
908 | | - | |
909 | | - | |
| 924 | + | |
910 | 925 | | |
911 | 926 | | |
912 | 927 | | |
| |||
0 commit comments