rpmohn / a4

dynamic terminal manager and multiplexer
https://a4term.com
MIT License
33 stars 4 forks source link

a4 slow render running btop #12

Open littlewing7 opened 1 year ago

littlewing7 commented 1 year ago

Hi Ross,

I test the btop application in a4 and I see a slow in rendering:

a4_render_slow_20230623_1849

Max

rpmohn commented 1 year ago

I have plans to rewrite the screen buffer support and I hope that that improves the rendering performance.

littlewing7 commented 8 months ago

Hi Ross,

I done a little test with perf top tool and this is the result running btop inside A4 and outside, as you can see the most CPU usage are caused by this 3 functions: image

FYI the full are there (up btop inside A4 - down btop outside A4):

image

can this be useful for you to investigate if the slow rendering is caused by buffer or depends on something other ?

Many thanks for your work and Happy New Year !!!

MaX

kalocsaibotond commented 9 hours ago

I tried out a4 with my LazyVim config, and I can also confirm that the character rendering is very slow and (CPU) resource demanding. On the contrary, I found that tmux's character rendering was the most performant. Is there a way to just copy and paste tmux's character rendering code into a4 ?