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 This content has been proxied by September (ba2dc).Proxy Information
text/gemini; charset=utf-8