Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > OpenGL 3D API > Draw OpenGLScen...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 18 Topic 4755 of 4953
Post > Topic >>

Draw OpenGLScene without WM_PAINT

by Albe <alberto_ressia@[EMAIL PROTECTED] > May 19, 2008 at 12:12 AM

Hi all,
I'm writing a software that receive data to USB ****t and draw same
graphics in same Windows TAB ( I'm using Visual Studio 2003 with
MFC ).
I have to draw the new scene only when the new data on USB ****t is
available and this data changing is not very fast (400 Hz - 400 sample
per second), on this I have an issue with the extra work to CPU, is
always upper than 90% probably because the WM_PAINT is so fast and the
software draws continuosly the same scene between two sample to USB
****t.

To solve this issue I tried to eliminate the WM_PAINT in OpenGL and
call the OpenGL::OnPaint only when the new data occours but the
window's device context is 0 and I don't understand why.

Cau yuo help me?

Thank you

Alberto
 




 18 Posts in Topic:
Draw OpenGLScene without WM_PAINT
Albe <alberto_ressia@[  2008-05-19 00:12:21 
Re: Draw OpenGLScene without WM_PAINT
Wolfgang Draxinger <wd  2008-05-19 09:47:36 
Re: Draw OpenGLScene without WM_PAINT
Albe <alberto_ressia@[  2008-05-19 01:47:07 
Re: Draw OpenGLScene without WM_PAINT
aku ankka <jukka@[EMAI  2008-05-19 03:21:22 
Re: Draw OpenGLScene without WM_PAINT
Albe <alberto_ressia@[  2008-05-19 05:57:37 
Re: Draw OpenGLScene without WM_PAINT
Jonno <jonno@[EMAIL PR  2008-05-19 14:23:06 
Re: Draw OpenGLScene without WM_PAINT
Albe <alberto_ressia@[  2008-05-19 07:27:09 
Re: Draw OpenGLScene without WM_PAINT
Jonno <jonno@[EMAIL PR  2008-05-19 15:54:39 
Re: Draw OpenGLScene without WM_PAINT
Albe <alberto_ressia@[  2008-05-19 08:47:09 
Re: Draw OpenGLScene without WM_PAINT
Jonno <jonno@[EMAIL PR  2008-05-19 17:00:35 
Re: Draw OpenGLScene without WM_PAINT
aku ankka <jukka@[EMAI  2008-05-19 23:29:33 
Re: Draw OpenGLScene without WM_PAINT
Albe <alberto_ressia@[  2008-05-20 00:25:21 
Re: Draw OpenGLScene without WM_PAINT
Diego <jose.diego@[EMA  2008-05-21 09:33:15 
Re: Draw OpenGLScene without WM_PAINT
Albe <alberto_ressia@[  2008-05-22 02:33:00 
Re: Draw OpenGLScene without WM_PAINT
Jonno <jonno@[EMAIL PR  2008-05-22 11:24:50 
Re: Draw OpenGLScene without WM_PAINT
"Clemens" <y  2008-05-24 09:56:44 
Re: Draw OpenGLScene without WM_PAINT
Albe <alberto_ressia@[  2008-05-26 02:43:17 
Re: Draw OpenGLScene without WM_PAINT
Jonno <jonno@[EMAIL PR  2008-05-27 09:09:26 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Oct 12 2:40:55 CDT 2008.