in my game i have a red panel that covers the screen and gets visible and fades out when the player gets hurt, however it makes the fps drop significantly on some computers, so far only laptops, but they should be able to make such an effect without dropping in fps.

i just want to know if there is another way to make the screen fade in and out with a color or if that is the only solution, or if there is a way to optimise it.