Skip to content

is the pig a hog? #2

@swfiua

Description

@swfiua

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions