Re: fast drawing in delphi



Maldona8 schrieb:

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.

You can give a more real-time response, by only updating the changed hexagons. This would require to remember the display-state in the hexagon objects, and perhaps a callback procedure to immediately redraw a changed object on the screen, in the according position.



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

It was a funny exercise, to quickly find a first solution for your problem. Now it's up to you to find the real bottlenecks, so that you don't spend too much time with ineffective optimizations. Keep us informed or your progress!


DoDi
.


Quantcast