Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit) (+1)

Thank you for this shader, it was exactly what I was looking for.

I seem to have really bad performance issues when using the fullscreen shader with the ColorRect method, especially when using "canvas_items" stretch mode, but also on "viewport".

I'm talking about having the fps of the game drop from 5000+ to 30.

Is there any way that this can be fixed? Can post more information if needed.


EDIT: Managed to improve the performance by using 1-pixel sized palettes, however, there is certainly a performance toll but it's more tolerable.

(1 edit) (+2)

Hi, thank you for the feedback.

Unfortunately, optimizing the shader is very tricky, as it has to go over every pixel on the screen and check for a matching color in the provided palette.

Reducing the size of the palette is a quick solution to minimize the performance toll, that's why this shader is best suited for pixel-art and sprites with a simpler color palette.

Improving its performance significantly might be challenging, especially considering I'm quite new to shader programming. However, I'm committed to continuing my efforts to optimize it further.

If anyone has ideas on how to enhance the shader's performance, I'm open to hearing them. Any insights could lead to valuable optimizations that I may not have considered.

Thank you again for bringing this to my attention, and I'll continue to explore ways to improve the shader's performance.