the reason for the low FPS is i create an array of all pixels in the screen (600*400=240.000)
and go through them in a loop do draw each pixel as needed (to get that effect) since it is a too large array i had to do it in step 4
so my array is now 15.000 big) and every frame i need to go over all pixels. this is not easy. on my pc i get around 25 FPS
i could make the step to 8 and like this increase the FPS and also get a nice Pixel Art Style.
For Each p As pixel In pixels
Dim sum As Int = 0
For Each cl As cell In celllist
Dim d As Int = distance(p.x,p.y,cl.x,cl.y)
sum = sum + (500 * (cl.r/d))
sum = Min(sum, 255)
Next
p.color = fx.Colors.To32Bit(fx.Colors.RGB(sum,128,0)) 'HSLtoRGB(sum*5,sum*10,sum*0.8) '
'...
on my pc i get the same result for the jar file as when you build the project. dont know why the jar file runs so slow on your pc. on mine it runs fast
you know what could be archived from this source? a nice blood animation where small blood particles falls into a dungeon. and with a little physic (magic) the animation could be very nice