Commit 9c476d1
authored
NEW: Added InputDeviceMatcher.WithManufacturerContains(string noRegexMatch) to improve DualShockSupport initialization performance (#1990)
* [InputSystem] Added WithManufacturerContains.WithManufacturerContains(string) - improve DualShockSupport initialization performance
o WithManufacturerContains() provides for simple keyword (no regex) matching in the manufacturer string
o Changes DualShock4Gamepad / DualShock3Gamepad matchers to avoid regex creation on initialization
These changes save 25ms in DualShockSupport.Initialize during player start-up (26ms -> 1ms)
* [InputSystem] Improve parameter name: WithManufacturerContains(string noRegexMatch), added chanelog entry (ISX-1411)
* [InputSystem] Fixed typo in CHANGELOG
* [InputSystem] Fix string check in MatchSinglePropertyContains()
o Was looking for manufacturer string in pattern not pattern in manufacturer string (doh!)
* [InputSystem] Fix formatting of modified files (used unity-meta format tool)1 parent 41a977c commit 9c476d1
3 files changed
Lines changed: 39 additions & 4 deletions
File tree
- Packages/com.unity.inputsystem
- InputSystem
- Devices
- Plugins/DualShock
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
145 | 156 | | |
146 | 157 | | |
147 | 158 | | |
| |||
309 | 320 | | |
310 | 321 | | |
311 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
312 | 329 | | |
313 | 330 | | |
314 | 331 | | |
| |||
357 | 374 | | |
358 | 375 | | |
359 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
360 | 386 | | |
361 | 387 | | |
362 | 388 | | |
| |||
518 | 544 | | |
519 | 545 | | |
520 | 546 | | |
| 547 | + | |
521 | 548 | | |
522 | 549 | | |
523 | 550 | | |
| |||
529 | 556 | | |
530 | 557 | | |
531 | 558 | | |
| 559 | + | |
532 | 560 | | |
533 | 561 | | |
534 | 562 | | |
| |||
617 | 645 | | |
618 | 646 | | |
619 | 647 | | |
620 | | - | |
| 648 | + | |
621 | 649 | | |
622 | 650 | | |
623 | 651 | | |
624 | 652 | | |
625 | 653 | | |
626 | 654 | | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
627 | 659 | | |
628 | 660 | | |
629 | 661 | | |
| |||
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
68 | | - | |
69 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
0 commit comments