Hello!
I`m trying to write a physical simulation in Delphi 6. I`m simulating charges (electrons) moving in a 2D space. So I`ve used a TImage and I`m drawing on it. (I use the DoubleBuffered:=true property of the form). But I`ve found that it`s quite slow, because sometimes I have to draw a lot of things: circles as electrons, and lines (arrows) for the electric field, sometimes 50x50 or more.
I would like to ask if there is any other faster method. (ex. OpenGL or DirectX would be faster in 2D drawing?)
Thanks.
I`m trying to write a physical simulation in Delphi 6. I`m simulating charges (electrons) moving in a 2D space. So I`ve used a TImage and I`m drawing on it. (I use the DoubleBuffered:=true property of the form). But I`ve found that it`s quite slow, because sometimes I have to draw a lot of things: circles as electrons, and lines (arrows) for the electric field, sometimes 50x50 or more.
I would like to ask if there is any other faster method. (ex. OpenGL or DirectX would be faster in 2D drawing?)
Thanks.