On Thursday 22 March 2001 00:35, Pranay Kumar wrote:
> Hi all,
>
> I am new to this list and RTL. I have a applicarion running in Redhat 7
> with X 4.0.2. I am using signals to update a window afetr a specified
> interval. But linux only provides timer resolution of 10ms. I need to
> update my display 30 times a second which needs a timer of 33,333 us. But
> with resolution 10ms this is not possible.
>
>
> Can RTL help me here in anyways. If yes, how?? What is the easiest way for
> me to use RTL.

Well, it's really overkill to use RTL or RTAI just as a timebase generator 
for a soft real time user space task (because that's what you're going to get 
as long as you rely on normal Linux drivers to do the rendering), but it's 
possible, and rather easy.

Just set up a periodic RTL thread that writes a byte to an RTL FIFO every 
33.333 ms, and have the rendering thread do a blocking read on it before 
every update.

(However, note that your software update frequency is only losely related to 
the actual output, as the video refresh rate is still fixed according to the 
modeline used. You can't "force" CRT refreshes on standard display hardware.)


//David

.- M A I A -------------------------------------------------.
|      Multimedia Application Integration Architecture      |
| A Free/Open Source Plugin API for Professional Multimedia |
`----------------------> http://www.linuxaudiodev.com/maia -'
.- David Olofson -------------------------------------------.
| Audio Hacker - Open Source Advocate - Singer - Songwriter |
`--------------------------------------> [EMAIL PROTECTED] -'
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to