It still surprises me that the amount of parameters passed, especially if its just one object of the Point class, influences performance so much. I will try out passing only x and y in different variations to see how much performance changes i can see.
Next problems i'm facing with the light shader are the slow floats and a sqrt for calculating the distance between two points like sqrt(p1.x*p1.x + p2.x*p2.x). Any ideas how this could be improved? Perhaps somehow without the need of floatingpoint calculations.
btw jaguard: Can you give me an idea when your current game will be finished? I'm waiting for it.
Greetings,
Chris