Paul Cercueil
1542300a89
joystick: linux: Avoid checking for gamepad mapping each frame
...
The information whether a specific joystick can be used as a gamepad is
not going to change every frame, so we can cache the result into a
variable.
This dramatically reduces the performance impact of SDL2 on small
embedded devices, since the code path that is now avoided was quite
heavy.
Fixes #4229 .
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
2021-04-13 16:07:35 -07:00
..
2021-01-03 12:13:40 -06:00
2021-04-06 18:35:20 -04:00
2021-04-04 00:29:26 -04:00
2021-03-08 09:07:12 -08:00
2021-03-29 08:54:41 -07:00
2021-03-16 18:51:28 -07:00
2021-03-08 09:07:12 -08:00
2021-03-08 09:07:12 -08:00
2021-01-02 10:25:38 -08:00
2021-03-26 11:57:19 -07:00
2021-04-13 16:07:35 -07:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-01-04 01:23:50 +03:00
2021-01-04 10:20:10 +03:00
2021-03-08 09:07:12 -08:00
2021-03-08 09:07:12 -08:00
2021-04-13 14:42:38 +02:00
2021-03-08 09:07:12 -08:00
2021-03-16 18:51:28 -07:00
2021-02-15 08:43:53 -08:00
2021-04-02 14:36:53 -04:00
2021-03-08 09:07:12 -08:00
2021-04-13 16:02:53 -07:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-01-02 10:25:38 -08:00
2021-03-08 09:07:12 -08:00
2021-04-02 14:35:11 -04:00