Fork me on GitHub
#membrane
<
2021-07-24
>
ribelo11:07:26

Is refreshing lantern every 500 ms related to performance issues? 2 frames per second makes my eyes bleed.

phronmophobic13:07:59

@huxley, lanterna should refresh immediately after every event. the 500ms timeout is solely to make sure the UI updates when the view function updates during live coding. Are you updating the view/state outside of keyboard/mouse events? If so, there’s a way to force a refresh that I can document.

ribelo13:07:49

For now, I'm only hacking the todo app you created

ribelo13:07:46

and it's really cool, simple and fun and the only drawback is the screen flickering

ribelo13:07:25

maybe it's just a lanterna problem?

phronmophobic13:07:59

I’ve noticed the flickering and not sure exactly why. I thought lanterna was supposed to be double buffering and just updating parts of the screen that change. I’ll take a closer look. It’s definitely possible that I’m using their api sub optimally.

ribelo13:07:02

It's still awesome

phronmophobic20:07:46

@huxley, turns out lanterna was refreshing the whole screen every time instead of just updating the parts of the screen that changed :rolling_on_the_floor_laughing: Such a small change, but such a big improvement: https://github.com/phronmophobic/membrane/commit/a566b3111d81ad03b5196fda54e05f20a9305ea4 Thanks for reminding me!

phronmophobic20:07:56

I'll make new release today or tomorrow