Talk About Network

Google





Graphics > OpenGL 3D API > Re: Draw OpenGL...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 13 of 18 Topic 4755 of 5061
Post > Topic >>

Re: Draw OpenGLScene without WM_PAINT

by Diego <jose.diego@[EMAIL PROTECTED] > May 21, 2008 at 09:33 AM

On May 20, 4:25 am, Albe <alberto_res...@[EMAIL PROTECTED]
> wrote:
> I agree aku ankka, it doesn't benefit render faster than the refresh
> rate of the display, I have to refresh only when a new data occours
> but the WM_PAINT message is faster than the data. I have associated
> the high CPU usage with the faster WM_PAINT message, I'm not sure that
> it is correct, I tried to eliminate the WM_PAINT function in
> OpenGLControl::OnPaint and the CPU usage decrease to 15-25%, I tried
> to comment the code in OpenGLControl::OnPaint (I create the
> openglwindows but I don't draw aniting) the CPU usage stay to 95-98%.
>
> To USB I read a serial data composed to 10 bytes, the time betwenn two
> samples is settable at 50 Hz, 100Hz, 400Hz and 1000Hz. My driver
> maximum speed is 600 Hz (I have same problem when the device write at
> 1000 Hz but is not my priority now).
>
> Thank you for sup****t

you must be pooling when reading from USB
can you switch to a blocking I/O ? this will save CPU resources a lot
 




 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
localhost-V2008-12-19 Wed Jan 7 15:14:50 PST 2009.