Hi,
I'm working on data fields that draw a graph of historic values in the background.
It basically works by calling dc.drawLine for every pixel in the data field width and draw a
vertical line, representing the data value. Quite simple of course.
However, I wonder about performance. I measured the absolute time for the drawing function
with System.getTimer() from entry to exit.
On my Edge 820 it took 250ms for drawing 200 lines. Quite a lot for a routine that runs every second. Of course, from
inside the CIQ virtual machine, we can't know if other tasks are executed in that time, or if that
function really takes so long.
I tried to draw the 200 line graph in a BufferedBitmap and draw it to the data field DC in one call.
Suprisingly, this causes no speed up!
Can anybody explain the CIQ internals? Is there a faster method, expcept from drawing less lines ;)
Are there better profiling methods?
How do the other data fields with graphs draw their lines?
Thanks,
flo