Skip to content
Commit 4c956936 authored by Jeremy Whiting's avatar Jeremy Whiting
Browse files

gamecontroller: Do less SDL polling when there aren't devices yet.



Until we have a device we shouldn't poll SDL as often to run up the
cpu. So until we get a device event only poll every 2 seconds.
After we get a device to watch start polling every 100ms.

This still significantly reduces how much we poll since before this we
were polling every 1 ms.

Signed-off-by: default avatarJeremy Whiting <jpwhiting@kde.org>
(cherry picked from commit 6f956e62)
parent 82914a37
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment