Hello! I have a big issue. In my game, it uses a LOT of lights because of its cyberpunk theme, and it really hurts my fps. Is there any way to make lights less heavy on my frames per second? In my game, there are places where the camera zooms in and out very quickly, and when it’s zoomed out, my fps goes to 40-50 to 20-30. I have tried so many things, but nothing seems to work. Here’s an image of it.
Zoomed in:
Have you considered using a “Swiss cheese” type semi-transparent black overlay where blended edge holes are where you want lights? Effects, like lights, can be processor heavy.
There are a few ways to achieve this. One I would consider is to have 2 images, one pure black, the other black with a transparent hole hole in it. Then, as normal sprites, tile or stretch them. Put the transparent hole image over the lights, and stretch the solid black one around the holed images.
There are two I created using Paint.net. One’s just a plain black square, the other one was a black square that used the eraser to make the hole.
You can either use Paint dot net to adjust the image opacity, or do that in the events. Doing it in GDevelop gives you more control of how dark it is.
And if you do use this method, remember to avoid overlapping the images, otherwise you’ll end up with black lines in the scene.