Today i finally finished my last optimization, which is the rebuilding of the position from the depth.
Now i can finally render the sceen with a good framerate. A single light on a 1920x1080 screen is rendered at >60 fps (20 before optimizations)
Then i tried to render 36 lights (very close to each other, so they don't benefit from space optimizations) , and i get around 20/30 fps, while before i got 3 fps for about 10 light.
With a decent gpu i guess i could really render a lot of them, but it's a pretty good performance even on my pc.

Nessun commento:
Posta un commento