L
lumini
Guest
Hi there! I've been working recently on a project and it is getting more and more to the final stage. But recently I have noticed that there is a huge impact on my game's speed. But let's explain.
To accomplish the gradient in the picture I am blending the sprite for my ground ( using draw_sprite_general for both drawing and blending). Now the problem is, when I have a lot of instances in the room, the speed drops significantly , because every step the draw step is executed for every single instance. Also, the gradient is changing each second (by shifting the color), that's why it is executed every step.
My question here is: is there a different approach or a simpler way to draw a color gradient on a sprite like I provided? Please help... ^_^
To accomplish the gradient in the picture I am blending the sprite for my ground ( using draw_sprite_general for both drawing and blending). Now the problem is, when I have a lot of instances in the room, the speed drops significantly , because every step the draw step is executed for every single instance. Also, the gradient is changing each second (by shifting the color), that's why it is executed every step.
My question here is: is there a different approach or a simpler way to draw a color gradient on a sprite like I provided? Please help... ^_^