diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-12-06 11:52:26 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-12-06 11:52:26 +0200 |
commit | 6a565ea71745aaf4c91a7698bbf56f7d906fcaaa (patch) | |
tree | e68ed6140097be20ab51193dfd25ac1a4d1c502d /src/prefs.c | |
parent | e43ecd3eb279e117cbce8fd507ecef247938e4ac (diff) |
Added build option for sleeping while idle
It appears at least on macOS, SDL is doing a while lot of stuff while waiting for new events. Perhaps because it has some sort of high-frequency input/sensor processing? Not sure.
Now Lagrange will idle by polling events every 15 ms and sleeping in between. This reduces CPU time by an order of magnitude on macOS. Need to still test on other platforms.
Diffstat (limited to 'src/prefs.c')
0 files changed, 0 insertions, 0 deletions