Problem is that i have to caclulate evry value in a large matris, 400x600 in this case.
evry position in matrix messures the distance to each object (ball) on the screen, generate an value from this and add it to background matris.
this means that all brightnes from all 'blob/meta' objects will be added to each position in the matrix.
i then render the values from the matrix abouve a certen value (250 i think in my case) on the screen.
this huge 600x400 loop takes time, and then the rendering on top of that.
The reason why i dont only try to work with matrix around balls, is that it would cause a few problems with the clearing of old values from matrix. (the one farther away) ... then i would have to clear the matrix evry once in a while, and we would be back to sqare one again.
if i could work around this however, things could be allot faster.
this would atleast dramasticly remove the ammount of unnessesery loops, but i still need to draw it quik to the screen, and if im not misstaking, fullscreen drawing using WritePixel is still a bit slow, is it not?.
also, pleas note that i have a very crapy laptop that is basicly falling apart, i had to use half the details just to get a decent framerate when devoleping it, however... on most other computers i have tested this, i could run it in 2x the details with full fps.
Edit:
hmm... after some thinking, im not even sure the 'matrix clearing' would be a big issue... i will have to do some thinking on the mather and see if i cant modify things :)
evry position in matrix messures the distance to each object (ball) on the screen, generate an value from this and add it to background matris.
this means that all brightnes from all 'blob/meta' objects will be added to each position in the matrix.
i then render the values from the matrix abouve a certen value (250 i think in my case) on the screen.
this huge 600x400 loop takes time, and then the rendering on top of that.
The reason why i dont only try to work with matrix around balls, is that it would cause a few problems with the clearing of old values from matrix. (the one farther away) ... then i would have to clear the matrix evry once in a while, and we would be back to sqare one again.
if i could work around this however, things could be allot faster.
this would atleast dramasticly remove the ammount of unnessesery loops, but i still need to draw it quik to the screen, and if im not misstaking, fullscreen drawing using WritePixel is still a bit slow, is it not?.
also, pleas note that i have a very crapy laptop that is basicly falling apart, i had to use half the details just to get a decent framerate when devoleping it, however... on most other computers i have tested this, i could run it in 2x the details with full fps.
Edit:
hmm... after some thinking, im not even sure the 'matrix clearing' would be a big issue... i will have to do some thinking on the mather and see if i cant modify things :)