I am making a tilebased game that will simulate realtime day/night cycles.
I try to achieve a darkness effect by alphablitting a completely black image (240x320px) on top of the backbuffer just before flipping.
This has a huge effect on performance however! Framerate goes down from 50fps to 20fps.
Obviously this isn't acceptable so I'm looking for other ideas to solve this problem of simulating day/night.
I try to achieve a darkness effect by alphablitting a completely black image (240x320px) on top of the backbuffer just before flipping.
This has a huge effect on performance however! Framerate goes down from 50fps to 20fps.
Obviously this isn't acceptable so I'm looking for other ideas to solve this problem of simulating day/night.