Re: fast drawing in delphi



DoDi,
That's really great help! thanks for your advices! I will check it out right
now!

"Hans-Peter Diettrich" <DrDiettrich@xxxxxxxxxxx> a écrit dans le message de
news: 40u606F1bjpj4U2@xxxxxxxxxxxxxxxxx
> Maldona8 schrieb:
>
>> DoDi, did you mean, to create a monochrome bitmap
>> directly in memory and then forcing copy bitmap regions to screen?

> Not a direct copy to the screen, that will cause flicker. Instead
> allocate a buffer bitmap, and BitBlt the monochrome hexagon bitmap into
> it, for each of your 100*100 hexagons. Finally copy the completed bitmap

> Bonne chançe :-)
> DoDi

Merci bien ! J'suis très content ! Merci beaucoup! :o)

In my reply to Andreas Koch (20.12.05) I explained about the
task itself and the time resolution for drawing the colored hexagons...
So, 1 second for drawing the whole thing seems to me really a lot...

In my first reply to Bjørge (on 20.12.05) I submitted a Delphi source
code I use to draw a 10x10 hexagon bitmap, with Polygon().
One thing:
I dont know previously the color of each hexagon. It comes out
only after a neural network map (NN Kohonen's Map in my case) has calculated
the weights and actually each hexagon represents the neurons of this neural
network map.
As the map is calculated very fast (I have done something like
the FFT for increasing NN speed), I thought fast drawing the result could
reflect
the activity of the process (experiment with plants) that we try to
monitor...

Anyway, in my PIV 3.2 GHz I succeed to draw the whole thing in 250 ms with
D5
(In principle, every hexagon should be an object with properties and
methods).
Anyway 250 ms is still too much for me, because if I am going to show
a nearly real-time neural network doing its job, then I have to go down in
time resolution up to (at least) 40 - 50 ms.

Your advices are very valuable and interesting,
so I will try to follow your idea to see what happen! thanks! :o)

Ronald



.


Quantcast