https://github.com/openbermuda/karmapi/blob/master/karmapi/pig.py#L531
The loop that runs the pig gui has uses curio.sleep(0.5) to try and balance responsiveness with not taking too much cpu time with constant interrupts.
Image widget
may be innocent, but one time the pig was using 276% of a cpu whilst essentially doing nothing but displaying an image on a widget. Now under all this there is a lot more going on. And at the time I was copying SD images around, so the linux kernel was busy.
Another time it was using a fair bit of system time, about 30% of a cpu.
I haven't looked closely at it running on the pi.
https://github.com/openbermuda/karmapi/blob/master/karmapi/pig.py#L531
The loop that runs the pig gui has uses curio.sleep(0.5) to try and balance responsiveness with not taking too much cpu time with constant interrupts.
Image widget
may be innocent, but one time the pig was using 276% of a cpu whilst essentially doing nothing but displaying an image on a widget. Now under all this there is a lot more going on. And at the time I was copying SD images around, so the linux kernel was busy.
Another time it was using a fair bit of system time, about 30% of a cpu.
I haven't looked closely at it running on the pi.