Posted: Tue Jun 23, 2009 9:11 pm
@dobro:
Nice known effect but as Psychophanta told, modern gfxcards dont support the old 320x200 resolution. The minimum resolution must be 640x480 !
However your contribution works extremly slow, even on my Intel-Q8200... So i have taked a closer look to your source and did some modifications like changing the fx to work in 640x480 resolution, optimize for speed and at least optimize in size (sourcecode). Hope its OK for you, that i modified your entry for speed/size a bit... Just take a look to it and see what i changed ^^
Good luck with your entry!
Hope i did no mistakes nor destroyed your original fx...
Nice known effect but as Psychophanta told, modern gfxcards dont support the old 320x200 resolution. The minimum resolution must be 640x480 !
However your contribution works extremly slow, even on my Intel-Q8200... So i have taked a closer look to your source and did some modifications like changing the fx to work in 640x480 resolution, optimize for speed and at least optimize in size (sourcecode). Hope its OK for you, that i modified your entry for speed/size a bit... Just take a look to it and see what i changed ^^
Good luck with your entry!

Code: Select all
; Original version by dobro
; Optimized version by 'thorsten will' aka 'mr.vain of secretly!'
;
InitSprite():w=640:Dim D(w,480):OpenScreen(w,480,32,""):Repeat:d=ScreenOutput()
StartDrawing(d):h=480:If i=0:For i=1 To w<<4:a=Random(w-1):b=Random(h-1)
Circle(a,b,5,Random(4096)):Next:For x=0 To w-1:For y=0 To h-1:d(x,y)=Point(x,y)
Next:Next:EndIf:For x=1 To w-2:For y=1 To h-2:t=D(x-1,y-1)+D(x+1,y+1)+D(x,y-1)
t+D(x,y+1)+D(x+1,y)+D(x-1,y)+D(x-1,y+1)+D(x+1,y-1):t/8:Plot(x,y,t):D(x,y)=t:Next
Next:StopDrawing():FlipBuffers():Until GetAsyncKeyState_(27)