abom / linux-whiteboard

Automatically exported from code.google.com/p/linux-whiteboard
GNU General Public License v2.0
1 stars 0 forks source link

Improve CPU usage #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We need to improve CPU usage, once the calibration phase has finished.
Maybe we can SDL_Delay() when the user does not click with the IR pen on
the screen.

Original issue reported on code.google.com by pere.ne...@gmail.com on 26 Dec 2007 at 10:53

GoogleCodeExporter commented 9 years ago
That's more of a job of libcwiid than SDL IMO. In SDL, the program usually 
waits for
the vertical retrace of the monitor, meaning next 'drawing' event. There should 
be
some equivalent function in libcwiid, in which we are not continuing until the 
next
IR event.

Using manual delays may lead to inconsistencies between generated mouse events 
and
what users see on the screen.

Thinking about it though, users are not seeing more than 60 fps (usually). Do 
you
know any function in SDL to wait for the next vertical retrace?. SDL_Flip() 
requires
a working window, which may or may not be a good idea.

Original comment by vanhtu1...@gmail.com on 22 Jan 2008 at 7:34

GoogleCodeExporter commented 9 years ago
http://download.yousendit.com/7CBEAD9F79F87FDF

patch applied by 
patch < whiteboard*.patch
also will need libxtst-dev on debian systems not sure what the gentoo 
equivalent is.

Compiles great with the patch and the processor usage is reduced substantially. 

Original comment by lavac...@gmail.com on 25 Jan 2008 at 7:08

GoogleCodeExporter commented 9 years ago
Yes, I know. Just did that.

I'm gonna upload the new version soon. Thanks!

Original comment by pere.ne...@gmail.com on 25 Jan 2008 at 7:28

GoogleCodeExporter commented 9 years ago
Vahtu's idea worked.

Original comment by pere.ne...@gmail.com on 1 Feb 2008 at 7:02

GoogleCodeExporter commented 9 years ago
Hello pere.negre, I'm trying to contact you but still I cant find out the way, 
I'll
try be as short as I can.. 
I'm student of Engineer from the National University of Columbia and I choose 
as a
project work in the Linux-whiteboard project, I already have downloaded the 
.DEB and
the source, but if someone of yours could help me joining to this project will 
be
great, basically I have 3 goals, 1. Contribute with the documentation, 2. 
develop
something new and 3. upload my work to the repository, I have worked with this
software and I know that with your help I'm going to contribute as much as I 
can!
Best Regards
PS: I really don't know where I can e-mail you, so please excuse me! :-) 

Original comment by leon.sua...@gmail.com on 26 Oct 2009 at 3:12