f.grasso
12/10/2004 11:57:00 PM
Hi all,
I'm drawing an audio spectrum made of 256 bars.
I'm using a timer which gets the amplitude values and draws a bitmap
in memory. This is done every 5 milliseconds.
Also, the timer calls the Invalidate()... and then in the Form_Paint()
I draw the bitmap to the screen.
What happens is that CPU's usage jumps to 100%!!!!!
I think it's impossible that drawing lines cause this!
I've the same program written in C++ which uses SetTimer() and have a
CPU usage of about 2%!!
Has anybody any suggestion??
Thanks a lot!