Commit 4cc7391
committed
perf: stop resetting mouse to center each frame
this is actually quite expensive on Windows. 5% of the frame
can be used up by this over time due to weird process initialization,
calling into WoW64, etc.
this may have regressions. i tried testing as much as possible but
vgui is a strange beast.1 parent 8e7309e commit 4cc7391
File tree
4 files changed
+36
-7
lines changed- src
- engine
- game/client
- tf/vgui
- vguimatsurface
4 files changed
+36
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
304 | 307 | | |
305 | 308 | | |
306 | 309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | 141 | | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | 177 | | |
179 | 178 | | |
| 179 | + | |
| 180 | + | |
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
| |||
686 | 687 | | |
687 | 688 | | |
688 | 689 | | |
| 690 | + | |
689 | 691 | | |
690 | 692 | | |
| 693 | + | |
691 | 694 | | |
692 | 695 | | |
693 | 696 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
318 | 317 | | |
319 | | - | |
320 | | - | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4108 | 4108 | | |
4109 | 4109 | | |
4110 | 4110 | | |
| 4111 | + | |
| 4112 | + | |
4111 | 4113 | | |
4112 | 4114 | | |
4113 | 4115 | | |
| |||
4118 | 4120 | | |
4119 | 4121 | | |
4120 | 4122 | | |
4121 | | - | |
| 4123 | + | |
4122 | 4124 | | |
4123 | 4125 | | |
4124 | 4126 | | |
| |||
4148 | 4150 | | |
4149 | 4151 | | |
4150 | 4152 | | |
4151 | | - | |
| 4153 | + | |
4152 | 4154 | | |
4153 | 4155 | | |
4154 | 4156 | | |
| |||
4185 | 4187 | | |
4186 | 4188 | | |
4187 | 4189 | | |
| 4190 | + | |
| 4191 | + | |
| 4192 | + | |
| 4193 | + | |
| 4194 | + | |
| 4195 | + | |
| 4196 | + | |
| 4197 | + | |
| 4198 | + | |
| 4199 | + | |
| 4200 | + | |
| 4201 | + | |
| 4202 | + | |
| 4203 | + | |
| 4204 | + | |
| 4205 | + | |
| 4206 | + | |
| 4207 | + | |
| 4208 | + | |
| 4209 | + | |
| 4210 | + | |
4188 | 4211 | | |
4189 | 4212 | | |
4190 | 4213 | | |
| |||
0 commit comments