Skip to content

SDL_IsGameController very slow #5211

@dascandy

Description

@dascandy

This property check takes between 10 and 30 milliseconds on my system, causing some games to be unplayable. Specifically, I do not have a joystick connected, and one game tries to check for a viable joystick on every frame. This causes the game to run at unplayable rates. Since the information does not change, it would be good if SDL cached this and did not run the full probe every time.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions