Commit 896b8ce
committed
refactor: consolidate controllers, themes, visualization & performance
Spectrum
- Simplified spectrum analyzer architecture
- Fixed namespace conflict by using FftSharp.Windows
Controllers/UI
- Replaced 10+ managers with AppController, ViewManager and UIManager
- Removed redundant interfaces (controller/view/ui/rendering/cleanup)
- Simplified IMainController (removed inheritance chain)
- Updated XAML bindings to direct paths:
- View.BarCount, View.RenderQuality, View.SelectedStyle
- Audio.MinDbLevel, Audio.AmplificationFactor
- UI.IsOverlayActive, UI.IsPopupOpen
- Reduced controller code size (~800 LOC -> ~460 LOC)
Themes/Settings/DI
- Merged ThemeManager, IThemes and CommonResources
- Switched to Microsoft.Extensions.DependencyInjection
- Settings refactor: 13 files -> 3 (-600 LOC)
- Fixed theme persistence and Space key binding; instant save on theme change
- Consolidated Colors/Brushes; removed redundant interfaces
- SmartLogger: lazy init + auto-configuration
Windows/Layout
- ControlPanelWindow: replaced Popup with Grid overlay; added StereoMode selector
- SettingsWindow: reduced size; added SettingSlider; fixed key bindings
- Removed XAML event handlers and code-behind subscriptions where possible
Visualization/Performance
- Consolidated visualization into core files: SpectrumRenderer, RendererCore, PerformanceCore, Placeholder, Interfaces
- Simplified renderer hierarchy (4 levels -> 2)
- Centralized spectrum processing and shared SKPaint/SKPath pooling
- Unified performance metrics and FPS limiter in PerformanceCore
- Added IRendererContext; simplified RendererFactory/cache; moved perf overlay renderer
- Fixed DI registration for performance and transparency managers
- Reduced overall code size (~30%) and added new renderers
Overlay
- Resolved transparency and performance issues
- Removed BitmapCache from SKElement to fix FPS drops
- Refactored overlay module structure
- Optimized overlay rendering and fixed click-through
Repo hygiene
- Removed tracked test project and stray file; added test project to .gitignore1 parent 25e7894 commit 896b8ce
File tree
210 files changed
+17040
-31362
lines changed- SpectrumNetXUnit
- SpectrumNet
- SN.Controllers
- Input
- Interfaces
- Interfaces
- View
- Interfaces
- SN.Settings
- Base
- Constants
- Interfaces
- Models
- SN.Sound
- Interfaces
- SN.Spectrum
- Core
- Interfaces
- Models
- Utils
- Converters
- Math
- SN.Themes
- Interfaces
- Resources
- SN.Visualization
- Abstract/Core
- Core
- Interfaces
- Overlay
- Core
- Interfaces
- Managers
- Native
- Performance
- Interfaces
- Renderers
- Utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
210 files changed
+17040
-31362
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| 366 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | | - | |
14 | 12 | | |
15 | | - | |
16 | 13 | | |
17 | | - | |
18 | 14 | | |
19 | | - | |
20 | 15 | | |
21 | | - | |
22 | 16 | | |
23 | 17 | | |
24 | 18 | | |
| |||
29 | 23 | | |
30 | 24 | | |
31 | 25 | | |
32 | | - | |
33 | 26 | | |
34 | 27 | | |
35 | 28 | | |
| |||
46 | 39 | | |
47 | 40 | | |
48 | 41 | | |
49 | | - | |
50 | 42 | | |
51 | 43 | | |
52 | | - | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
6 | 4 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| 18 | + | |
| 19 | + | |
13 | 20 | | |
14 | 21 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
20 | 34 | | |
21 | 35 | | |
22 | 36 | | |
23 | | - | |
| 37 | + | |
24 | 38 | | |
25 | 39 | | |
26 | 40 | | |
27 | 41 | | |
28 | | - | |
| 42 | + | |
29 | 43 | | |
30 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
31 | 53 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
41 | 78 | | |
42 | 79 | | |
43 | | - | |
| 80 | + | |
44 | 81 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
49 | 94 | | |
50 | 95 | | |
51 | | - | |
| 96 | + | |
52 | 97 | | |
53 | | - | |
54 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
55 | 103 | | |
56 | 104 | | |
57 | | - | |
| 105 | + | |
58 | 106 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
64 | 113 | | |
65 | 114 | | |
66 | | - | |
67 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
68 | 134 | | |
69 | 135 | | |
70 | 136 | | |
| 137 | + | |
71 | 138 | | |
72 | | - | |
73 | 139 | | |
74 | 140 | | |
75 | | - | |
| 141 | + | |
76 | 142 | | |
77 | 143 | | |
78 | 144 | | |
79 | | - | |
| 145 | + | |
80 | 146 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
85 | 155 | | |
86 | 156 | | |
87 | 157 | | |
88 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
89 | 163 | | |
90 | 164 | | |
91 | 165 | | |
92 | | - | |
| 166 | + | |
93 | 167 | | |
94 | 168 | | |
95 | 169 | | |
96 | | - | |
97 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
98 | 174 | | |
99 | 175 | | |
100 | 176 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
112 | 181 | | |
113 | | - | |
114 | | - | |
115 | 182 | | |
116 | 183 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
| 184 | + | |
0 commit comments