Re: [LIP] video display

Kingsly John <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Organization Kingsly John Inc. :-)
Message-ID <[email protected]>
+++ Karthika S (IMP) - CTD, Chennai. [2004-04-08 11:52:17]:

> Hi all.
> I want to display large images (1920X1200 size) at video rate (30fps). I
> want to know what the best method of display would be. I am using Qt. I have
> also tried raw X Window programming, but am unable to achieve this rate for
> such huge size images.
> Specifically, these are 2 promising options:
> 1. MIT's shared memory - it takes almost 150 ms for the XShmCompletionEvent
> to be received, after using XShmPutImage. Is there any way to improve this?


I think a lot of it depends on the kind of hardware/drivers you are using...

I had a lot of problems with watching tv on my old TNT2 card... and I was
told by the developer of tvtime to run the following test on my box.. I've
since bought a new machine with a GF4-MX440.. and the performance is amazing!

So try running your program of different hardware configs before judging the
best solution.

Loads of numbers from the tests I ran on my old box and my new one are at the
end of this mail so that you can get an idea of the kind of difference in
perforamce that is possible.(I get 5x boost in speed inspite of going up from
16bit to 24bit! )

Kingsly



x11perf -shmput500 

[on TNT2 Ultra AGP4x (at 16bpp IIRC)]

Sync time adjustment is 0.0760 msecs.

   1600 reps @   4.0149 msec (   249.0/sec): ShmPutImage 500x500 square
   1600 reps @   5.1567 msec (   194.0/sec): ShmPutImage 500x500 square
   1600 reps @   8.0834 msec (   124.0/sec): ShmPutImage 500x500 square
   1600 reps @   8.0013 msec (   125.0/sec): ShmPutImage 500x500 square
   1600 reps @   8.0793 msec (   124.0/sec): ShmPutImage 500x500 square
   8000 trep @   6.6671 msec (   150.0/sec): ShmPutImage 500x500 square


[on GeForce4 MX AGP8x (at 24bpp)]

Sync time adjustment is 0.0293 msecs.

   2400 reps @   2.2769 msec (   439.0/sec): ShmPutImage 500x500 square
   2400 reps @   2.2729 msec (   440.0/sec): ShmPutImage 500x500 square
   2400 reps @   2.2715 msec (   440.0/sec): ShmPutImage 500x500 square
   2400 reps @   2.2726 msec (   440.0/sec): ShmPutImage 500x500 square
   2400 reps @   2.2721 msec (   440.0/sec): ShmPutImage 500x500 square
  12000 trep @   2.2732 msec (   440.0/sec): ShmPutImage 500x500 square

From the tv-viewer...

On the old card...

[email protected] - Windowed mode

tvtime: Stats using 'Television: Full resolution' at 720x576 [RT].
tvtime: acquire  0.13 ms, show bot 13.81 ms, build top  9.48 ms
tvtime: waitbot  0.04 ms, show top 11.15 ms, build bot  2.72 ms
tvtime: average blit time: 14.43 ms, average render time: 6.59 ms
tvtime: Last frame times top-to-bot: 17.36 ms, bot-to-top: 20.68 ms

[email protected] - Fullscreen mode

tvtime: Stats using 'Television: Full resolution' at 720x576 [RT].
tvtime: acquire  0.12 ms, show bot 13.08 ms, build top 10.16 ms
tvtime: waitbot  0.17 ms, show top 18.62 ms, build bot  3.46 ms
tvtime: average blit time: 14.14 ms, average render time: 6.59 ms
tvtime: Last frame times top-to-bot: 16.60 ms, bot-to-top: 28.95 ms


On the new card ... 

[email protected] - Windowed mode

tvtime: Stats using 'Television: Full resolution' at 720x576.
tvtime: acquire 15.78 ms, show bot  2.16 ms, build top  1.31 ms
tvtime: waitbot 17.34 ms, show top  2.08 ms, build bot  1.33 ms
tvtime: average blit time: 2.12 ms, average render time: 1.31 ms
tvtime: Last frame times top-to-bot: 19.19 ms, bot-to-top: 20.73 ms

[email protected] - Full Screen

tvtime: Stats using 'Television: Full resolution' at 720x576.
tvtime: acquire 15.51 ms, show bot  2.13 ms, build top  1.95 ms
tvtime: waitbot 16.28 ms, show top  2.13 ms, build bot  2.01 ms
tvtime: average blit time: 2.15 ms, average render time: 2.00 ms
tvtime: Last frame times top-to-bot: 19.63 ms, bot-to-top: 20.36 ms


-- 


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.