Article View: borland.public.cppbuilder.nativeapi
Article #1896Re: How to be sure a window has been repainted
From: Christophe MINETTI
Date: Thu, 31 May 2007 05:35
Date: Thu, 31 May 2007 05:35
39 lines
2371 bytes
2371 bytes
Thanks for your help ! It's getting more clear for me. Christophe Bob Gonder wrote: > Christophe MINETTI wrote: > > >Yes it turns around 70 msec to get a "stable" image. > >As I have to wait at least 70 msec > >and then wait the next synchro top of the camera, I am decreasing the acquisition > >frequency. If I decrease those 70 msec, than for sure I will get a mix of two > >frames. > > If you go to DirectDraw or DirectX you might be able to pick up a bit > by drawing the next frame on a hidden page while you are waiting for > the LCD pixels to turn on. > http://msdn2.microsoft.com/en-us/library/ms792915.aspx > > Pre-Paint to hidden page > Loop: > WaitForBlank less than 17ms (end of last scanline) > Flip page > Paint to hidden page > WaitForBlank 17ms > Wait for LCD 5 to 20 ms depending on LCD > Click Camera > repeat Loop. > > So, if you have a gamer's LCD, and your camera can sync up and capture > within 12 ms, then you could get 30 fps > With a regular LCD, you would be looking at a maximum of 20 fps. > And if the camera is slow, 15 fps. > > > I was hoping (but I think there is no way to get it) to know by any way when > >the LCD has been completely refreshed ... > > No, there is no way, as that has to do with the speed of the crystals, > and not the electronics.
Technical Details
Message-ID:
<465E5EB5.A49C761@ulb.ac.be>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<465B192D.18A0FD94@skynet.be> <k3tn53t0jd7bhqfu8c5idsca88ib4pss8e@4ax.com> <465C5E9C.2704298B@skynet.be> <op4p53t82bqqjft676ed9dcoiqachl1sln@4ax.com> <465D0DBA.F3D65804@ulb.ac.be> <0i7r531ioildlrfh5bd891kpmf7h674bqp@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,1db88f519055e05b X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Message-ID: <465E5EB5.A49C761@ulb.ac.be> Date: Thu, 31 May 2007 07:35:49 +0200 From: Christophe MINETTI <cminetti@ulb.ac.be> X-Mailer: Mozilla 4.74 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: How to be sure a window has been repainted References: <465B192D.18A0FD94@skynet.be> <k3tn53t0jd7bhqfu8c5idsca88ib4pss8e@4ax.com> <465C5E9C.2704298B@skynet.be> <op4p53t82bqqjft676ed9dcoiqachl1sln@4ax.com> <465D0DBA.F3D65804@ulb.ac.be> <0i7r531ioildlrfh5bd891kpmf7h674bqp@4ax.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 164.15.88.32 X-Trace: newsgroups.borland.com 1180589697 164.15.88.32 (30 May 2007 22:34:57 -0700) Lines: 40 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail