There was an error fetching the commit references. Please try again later.
common/input: Avoid numerous large copies of CallbackStatus
CallbackStatus instances aren't the cheapest things to copy around (relative to everything else), given that they're currently 520 bytes in size and are currently copied numerous times when callbacks are invoked. Instead, we can pass the status by const reference to avoid all the copying.
Showing
- src/common/input.h 2 additions, 2 deletionssrc/common/input.h
- src/core/hid/emulated_console.cpp 12 additions, 9 deletionssrc/core/hid/emulated_console.cpp
- src/core/hid/emulated_console.h 2 additions, 2 deletionssrc/core/hid/emulated_console.h
- src/core/hid/emulated_controller.cpp 54 additions, 41 deletionssrc/core/hid/emulated_controller.cpp
- src/core/hid/emulated_controller.h 8 additions, 5 deletionssrc/core/hid/emulated_controller.h
- src/core/hid/emulated_devices.cpp 37 additions, 29 deletionssrc/core/hid/emulated_devices.cpp
- src/core/hid/emulated_devices.h 5 additions, 6 deletionssrc/core/hid/emulated_devices.h
- src/input_common/helpers/stick_from_buttons.cpp 44 additions, 31 deletionssrc/input_common/helpers/stick_from_buttons.cpp
- src/input_common/helpers/touch_from_buttons.cpp 7 additions, 4 deletionssrc/input_common/helpers/touch_from_buttons.cpp
Loading
Please register or sign in to comment