CPU usage fix
Brought to you by:
hhabermann,
zmoelnig
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
Patch to fix the 100% CPU usage while loading problem