Sunday, June 20, 2010

gmenu2x hogs my CPU no more

Not sure if anyone ever noticed that, but gmenu2x wastes enormous amounts of CPU time (20-30%) by constantly redrawing the screen when there's absolutely nothing going on. So I made a quick fix that makes it redraw the screen on user input only.

Commit: http://github.com/uli/gmenu2x/commit/c2c1c375d21c1872e2c47a661d9aae0d0227e5d5
Binary: http://github.com/downloads/uli/gmenu2x/gmenu2x

2 comments:

  1. Yes i also noticed this. But no time to look into it. So nice you did it.

    gmenu2x also uses ~7mb of ram. Thats also a little bit much.

    ReplyDelete
  2. Good stuff! I cherry-picked this commit into the gmenu2x fork of Qi Hardware:
    http://projects.qi-hardware.com/index.php/p/gmenu2x/source/changes/master/

    ReplyDelete