Re: 8ms Timer for serial port access

From: Daniel Hofmann (daniel.usenet_at_gmx.de)
Date: 10/31/03


Date: Fri, 31 Oct 2003 17:53:55 +0100

byron@cc.gatech.edu (Byron A Jeff) writes:

> -Why go to all the bother, when not doing it is easier and the
> -result is the same. If he does that, he collects 120 samples
> -per second and he then provides the display with 72 of them. If
> -he doesn't do that, he still collects 120 samples, but he gives
> -the display all 120 of samples but the display never gets around
> -to displaying more than 72 (the rest are overwritten with new
> -samples before they are ever displayed).
> -
> -There simply is no difference in the end result. He displays
> -only 72 out of 120 samples. And *nothing* is going to change
> -that short of either a different serial device providing the
> -samples or a faster video device displaying them. Worse yet,
> -there is no way to avoid such a problem short of synchronizing
> -the serial device and the display device to each other!
> -
>
> You missed one of his points though, Floyd. He munges 5 sets of samples
> to detect a certain type of eye movement. So even though every sample won't
> affect the display directly, every sample is involved in that type of eye
> movement. So it still all needs to be collected.

Certainly true. But these are - in my eyes - two distinct problems
which have to be solved one by one: a) capturing all data without loss
b) doing it in a time sensible manner.

> Jens also points out that he wants to react to that type of eye movement
> as soon as it is detectable. This also points to collecting the data as
> quickly as possible.

But one must say, that 'as fast as possible' is not really a valid
specification of realtime requirements. Unless these are not defined,
any 'blind' optimization maybe useless. There are three timelines
involved: a) the scheduler, b) the serial input, c) the screen. By
now only a) and b) were discussed. c) seems to me - as far as X is
involved - quite more problematic to control. And it also seems to be
much more important for Jens' problem. It doesn't count when he gets
hand on the data, as long as he can't tell when changes are displayed
(am I right?).

Are there any ideas? Some time ago I took a look at XSync extension,
but didn't understand it well. Any pointers to that subject are
welcome.

Daniel.



Relevant Pages

  • Re: 8ms Timer for serial port access
    ... > -that short of either a different serial device providing the ... > affect the display directly, every sample is involved in that type of eye ... Exactly, the data of every single frame is important, because the detection ... If one frame is missing and lets say the velocity is ...
    (comp.os.linux.development.apps)
  • Re: 8 bit values in mode 13h?
    ... Visually, there are NO crisp and clear lines...our vision is, in fact, ... obvious...it's harder to clearly demonstrate to an eye not trained to ... impacted those "rods" and "cones" during the period since the brain ... In DOS I do display color images ...
    (alt.lang.asm)
  • Re: Spot the missing tip.
    ... display uses more energy than a square inch of a square one? ... You quote an piece about energy efficiency and point ... "efficient" square or round display our eyes are constantly scanning ... "pleasing" to the eye to use a canvas that is wider than it is high. ...
    (uk.legal)
  • Re: Table. Getting OT but possibly applicable in the future.
    ... show all day long surrounded by display systems that would blow ... If you watch normal TV without moving your head and with one eye ... appeared to be about half a metre in front of the screen. ... giving the illusion of 3D. ...
    (alt.html)
  • Re: Display Cases ?
    ... Keep an eye out; I got mine from a bakery that didn't need it any ... have an amazing amount of cool stuff laying around. ... > putting some in some sort of display case. ...
    (rec.models.scale)