31
SFML projects / Re: Colonies - A Retro Sandbox Survival MMO
« on: August 23, 2013, 03:22:12 pm »Thanks for your blog article ! So I'm doing the same for lighting except I draw sf::RenderTexture on each other instead of using shaders. Your solution seems more CPU saving.
I actually tried your method a week ago and it didn't work. I was only getting around 15 FPS once optimized. Half of the problem was that I'd have to pass a bunch of textures to the shaders, then blend the image together. It was a real mess.
My way of doing it definitely has its advantages. If you cache the lightmap, you can easily get 500+ FPS with over 1000 lights with little to no performance hits at all. I haven't added caching yet, but I will eventually if I see it as a problem. I can still get over 60 FPS in my application without caching and with 35 lights, so it's not too big of a deal until I optimize at a later date.
I read your whole blog and once again I must congratz you. Especially for holding on your project (and have chosen C++ and sfml and linux at some point :p )
Hehe thanks! One of the main reasons why I chose C++ and SFML was the portability.