Menu

#2 CPU usage fix

closed
nobody
None
5
2008-05-04
2007-06-11
No

Hi all,

The attached patch fixes the problem of khtml2png using 100% CPU while waiting for the page to load. All I've done is let QT handle the event loop rather than doing it manually in KHTML2PNG::init(). This is because QT can be clever and use mechanisms like select() or poll() upon the X11 and http sockets so the app only uses CPU time when there's actually something to do.

Cheers,

Alex

Discussion

  • Alex Osborne

    Alex Osborne - 2007-06-11

    Patch to fix the 100% CPU usage while loading problem

     
  • Hauke Goos-Habermann

    • status: open --> closed