Hello,
It is true, Gdiplus is slow.
Here is a star field what actually should run with 64 frames.
I only got 32 frames, and my computer is not lame.
It is the same like OpenGl, much work and as prize snails tempo.
include "gp.inc"
OpenWindow 800,600,1
sys xstar[500]
sys ystar[500]
sys speed[500]
sys xres=800, yres=600, i, fz
single v
For i=1, 500
xstar[i] = Rnd(1,xRes-2)
ystar[i] = Rnd(1,yRes-2)
speed[i] = Rnd(1,4)
Next
phx = LoadImage "png/phoenix.png",10
while KeyDown(27)=0
SetCaption "Frames " + GetFps
clsColor ARGB(100,0,0,0)
DrawImage phx,350,250,fz
For i=1, 500
DrawPoint xstar[i],ystar[i],2, ARGB(255,Rnd(64,255),255,255)
xstar[i] += speed[i]
if xstar[i] > xRes then
xstar[i] = 0
ystar[i] = Rnd(1, yRes-2)
speed[i] = Rnd(1, 4)
end if
Next
v +=.2
if v >=1
v=0
fz +=1
if fz=10 then fz=0
end if
Sync
wend
CloseWindow
.