eden-miror/src/hid_core
lizzie def03f6589
Some checks are pending
tx-src / sources (push) Waiting to run
Check Strings / check-strings (push) Waiting to run
[video_core] fix redundant resize-copy overload and just use default-init resize, to reduce stutter on Mario BP (#3874)
before vs. after

Mario Brothership kept remaking vectors of sizes 256 AND 4095 (TIC) and 1215 AND 524287 (TSC) every single frame, which resulted in a noticeable overhead

the main cause was because of using `resize(n, c)` instead of `resize(n)` (also to aggressively resize for more room beforehand), the copy overload of resize does a copy of... well.. the value over the entire vector, additionally __append() keeps getting called because the capacity goes bonkers and all over the place

![image](/attachments/e3ba07fb-1c85-4d56-9b81-bb16a8150c15)
![image](/attachments/5c4eba26-015a-4c95-9b24-b41695a62e51)

Signed-off-by: lizzie <lizzie@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3874
Reviewed-by: crueter <crueter@eden-emu.dev>
Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
2026-05-29 03:28:47 +02:00
..
frontend [hid_core] remove contentious mutex from EmulatedController and just rely on atomic semantics for fields (#3866) 2026-05-15 22:06:23 +02:00
hidbus [meta] fix license headers (#2547) 2025-09-21 21:58:59 +02:00
irsensor [meta] fix license headers (#2547) 2025-09-21 21:58:59 +02:00
resources [video_core] fix redundant resize-copy overload and just use default-init resize, to reduce stutter on Mario BP (#3874) 2026-05-29 03:28:47 +02:00
CMakeLists.txt [cmake] fixes for XCode when having languages other than C/C++ (#3772) 2026-03-26 04:46:43 +01:00
hid_core.cpp hid_core: Move hid to it's own subproject 2024-01-05 11:41:15 -06:00
hid_core.h hid_core: Move hid to it's own subproject 2024-01-05 11:41:15 -06:00
hid_result.h service: hid: Fully implement touch resource 2024-01-28 18:27:25 -06:00
hid_types.h Merge pull request #13135 from german77/hid-interface 2024-02-27 12:26:26 -05:00
hid_util.h service: hid: Create abstracted pad structure 2024-01-11 19:35:04 -06:00
resource_manager.cpp [common/logging] Simplify logging logic and fix issues when logging before system is created (#3688) 2026-03-12 18:29:15 +01:00
resource_manager.h service: hid: Move and migrate AppletResource and ActiveVibrationDevice 2024-02-23 17:49:02 -06:00