Hi,

thanks for the patch. I fixed the issue with the latest commit to
the qiv repository.

https://bitbucket.org/ciberandy/qiv/commits/f42a810

I slightly changed the patch.

Cheers,

 Thomas

* Hamish ([email protected]) wrote [Wed, 140423 04:34]:

> I'm using the --watch command line switch on a kiosk display with
> a Raspberry Pi on the backend. Updated display images get rsync'd
> into place to update the plots on the screen.

> The trouble is that `qiv` is chewing up 33% of the (already overclocked)
> CPU! Testing on my desktop workstation it's using 17% of one of my
> desktop cores when in --watch mode. Ouch.


> The problem is in utils.c, the usleep(200) there is way too short:

>   200 microseconds == updating every 0.0002 sec!
>   24 fps (watchable films) is 0.0416667 sec. == 41666.7 usec.

> But even 24 fps is probably too fast for this job, 10 fps should
> be more than enough to be noticable. (10 Hz is 100000 usec.)

> thus I humbly submit this patch to solve the issue:
> (tested & rebuilt the deb pkg, top shows it now down to 0.0% cpu use)

-- 
[X] Nail here for new Monitor


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to