Lagrange [work/v1.7]

Added build option for sleeping while idle

=> Jaakko Keränen

Sun Dec 6 11:52:26 2020 +0200

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.

 CMakeLists.txt        |  4 +++
 res/about/version.gmi |  1 +
 src/app.c             | 79 +++++++++++++++++++++++++++++++++++++++++++++------
 src/app.h             |  1 +
 4 files changed, 76 insertions(+), 9 deletions(-)

=> Diff (Colored) | Diff (Colored, Plain Text) | 🔨 Patch

=> Parent e43ecd3e | Repository

Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.7/commits/6a565ea7
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
59.260866 milliseconds
Gemini-to-HTML Time
0.558842 milliseconds

This content has been proxied by September (ba2dc).