Lagrange [work/v1.10]

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.10/commits/6a565ea71745aaf4c91a7698bbf56f7d906fcaaa
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
314.189998 milliseconds
Gemini-to-HTML Time
0.469201 milliseconds

This content has been proxied by September (ba2dc).