News for hackers. Stuff that matters.
Re:Bubble Tea: fun, functional and stateful way to build ter... by akkartik on Tuesday May 10, 2022 @06:04PM (#31333296)
Lately I'm all in on LÖVE (https://love2d.org). No dynamic linking required, cross-platform, less bloat than mainstream toolkits. Anything it can't do I just accept as a constraint I can't change.
Re:Bubble Tea: fun, functional and stateful way to build ter... by t0astbread on Tuesday May 10, 2022 @07:23PM (#31333950)
Game engines (at least the lightweight ones) seem good for cross-platform graphical apps in general but the idea of redrawing a static GUI at 30 FPS just sounds too inefficient to me.
Re:Bubble Tea: fun, functional and stateful way to build ter... by akkartik on Tuesday May 10, 2022 @07:40PM (#31334047)
You're absolutely right. So I do without 30 FPS.

We're all up this tree where we want all the features we're used to and we're willing to put up with software bloat and insecure software and sprawling supply chains to get it. I'm not. So I start with something minimalist and do what I can within it.

One of my inspirations is http://akkartik.name/illich.pdf

Re:Bubble Tea: fun, functional and stateful way to build ter... by fyve on Wednesday May 11, 2022 @08:15AM (#31338789)
Does this mean that you're rendering at 1fps, 10fps or something?

Is it an artificial limit you put on rendering?

Do you have button animations at 30 FPS?

Re:Bubble Tea: fun, functional and stateful way to build ter... by akkartik on Wednesday May 11, 2022 @07:26PM (#31347308)
All I meant is, if drawing too many things overloads the system so it can't render at 30fps, that's fine, I build things that don't look bad if the rate drops. I can't do action games, high-speed video, a few other things. That's fine, I can still do lots of things.
Re:Bubble Tea: fun, functional and stateful way to build ter... by runald on Wednesday May 11, 2022 @08:50AM (#31339197)
You can lower the frame rate when the window is not focused, or entirely avoid drawing if it's not visible.
Re:Bubble Tea: fun, functional and stateful way to build ter... by t0astbread on Tuesday May 10, 2022 @09:46PM (#31334942)
Well, that's certainly an interesting approach!
Re:Bubble Tea: fun, functional and stateful way to build ter... by naikrovek on Wednesday May 11, 2022 @01:53AM (#31336270)
I believe game engines usually draw to a texture then display the texture, reusing it on subsequent frames, but if they don't, that wouldn't surprise me. UIs don't take long to draw, so drawing at 60fps is often quite cheap.