G
Galen Somerville
My graphics involves a lot of line drawings in a short period of time. I
have all the graphics in a separate module.
I repeatedly get the pixel data from a USB device, draw the requisite
traces, get more data, draw traces, etc.
The USB appears to take 82 ms between bursts of data. But the drawing is
taking 178 ms !!!
It's a real time display, like an oscilloscope, whereby I have to blank the
current 6 pixels, draw the new data in those 6 pixels then blank the next 6
pixels (to leave a gap that shows the traces moving across the screen).
By 6 pixels I mean horizontally. The lines represented by these 6 pixels can
have vertical pixels of, say, 50 pixels above and below an imaginary center
line. At the end of a full screen sweep, the current array info is saved to
a previous array so all the data is available.
Rather than post my code here, I have placed all the module info on my web
site. I would appreciate it if someone with mucho more knowledge than I
could take a look at it.
http://home.surewest.net/galen/private/PictDraw.zip
Thanks
Galen
have all the graphics in a separate module.
I repeatedly get the pixel data from a USB device, draw the requisite
traces, get more data, draw traces, etc.
The USB appears to take 82 ms between bursts of data. But the drawing is
taking 178 ms !!!
It's a real time display, like an oscilloscope, whereby I have to blank the
current 6 pixels, draw the new data in those 6 pixels then blank the next 6
pixels (to leave a gap that shows the traces moving across the screen).
By 6 pixels I mean horizontally. The lines represented by these 6 pixels can
have vertical pixels of, say, 50 pixels above and below an imaginary center
line. At the end of a full screen sweep, the current array info is saved to
a previous array so all the data is available.
Rather than post my code here, I have placed all the module info on my web
site. I would appreciate it if someone with mucho more knowledge than I
could take a look at it.
http://home.surewest.net/galen/private/PictDraw.zip
Thanks
Galen