fbstatus icon indicating copy to clipboard operation
fbstatus copied to clipboard

CPU usage too high, especially on old hardware

Open bradfitz opened this issue 2 years ago • 3 comments

Now that #6 is fixed, I reached into the depths of my bins of Raspberry Pis and found the oldest one I had, a Model B Plus Rev 1.2.

Good news: it works!

Bad news: it uses 100% CPU in fbstatus... (draw: 1.491s, cp 111ms)

pib

But looks like some of the text drawing can be optimized, keeping around the previous frame and shifting some lines up, and caching some pre-rendered glyphs (they're fixed-width w/o ligatures, constant background, etc).

bradfitz avatar Apr 05 '23 23:04 bradfitz

Oops! Yeah, reducing CPU usage would be great. Improvements welcome :)

stapelberg avatar Apr 06 '23 09:04 stapelberg