News for hackers. Stuff that matters.
Re:Puny GUI – A tiny cross platform GUI Kit in Janet by DagAgren on Saturday April 25, 2020 @05:05AM (#22976772)
You're still going to be updating at 60 FPS which will absolutely murder your battery on a mobile device.

These are meant for use in games that already do this. They are not suitable for building regular apps.

Re:Puny GUI – A tiny cross platform GUI Kit in Janet by maeln on Saturday April 25, 2020 @05:20AM (#22976826)
They are perfectly suitable for regular app. You don't need to update them at 60fps, you have the entire control of the rendering state, so you could decide to update the gui whenever it is needed and not at a constant fps.
Re:Puny GUI – A tiny cross platform GUI Kit in Janet by flohofwoe on Saturday April 25, 2020 @06:41AM (#22977185)
The common solution is to only update rendering when input happens, and otherwise sleep. That's fairly common for ImGui applications outside games (in games it doesn't make sense of course, since those usually render each frame anyway).
Re:Puny GUI – A tiny cross platform GUI Kit in Janet by FraKtus on Saturday April 25, 2020 @05:28AM (#22976864)
You can update when you want and only on changes if it works better for your case.
Re:Puny GUI – A tiny cross platform GUI Kit in Janet by ducktective on Saturday April 25, 2020 @06:27AM (#22977125)
I think Nuklear had an option for dynamic update rate. Not sure though