I haven't seen much on dithering algorithms here, so I'm starting a new thread =)
I've implemented the Floyd-Steinberg error diffusion to support palettized devices such as the Jornada 525. I dither the backbuffer (565) using a "332" palette. In the hope of getting good performances, I used a simple diffusion pattern: 1/2 of the error goes to the next pixel on the right and 1/2 of the error goes to the one below. The resulting image has really good visual quality... But the frame rate is way too low.
Right now, I had report of about 4-6 fps using this dithering algorithm and about 21 fps using a "closest" color approach. Compared to the 145 fps I get on the Casio E-125 (native 565), this is quite lame.
Even using a really fast (and optimized) dithering algorithm (using a matrix for example), it seems I won't get much more then 21 fps... And this is without any game logic running!
I see two solutions: 1) Implement native 8-bits surfaces (something I really don't want to do because of needed time / suppport / ...) or 2) Drop support for 8-bit devices.
Any ideas? What about monochrome devices? They surely could use some dithering...
I've implemented the Floyd-Steinberg error diffusion to support palettized devices such as the Jornada 525. I dither the backbuffer (565) using a "332" palette. In the hope of getting good performances, I used a simple diffusion pattern: 1/2 of the error goes to the next pixel on the right and 1/2 of the error goes to the one below. The resulting image has really good visual quality... But the frame rate is way too low.
Right now, I had report of about 4-6 fps using this dithering algorithm and about 21 fps using a "closest" color approach. Compared to the 145 fps I get on the Casio E-125 (native 565), this is quite lame.
Even using a really fast (and optimized) dithering algorithm (using a matrix for example), it seems I won't get much more then 21 fps... And this is without any game logic running!
I see two solutions: 1) Implement native 8-bits surfaces (something I really don't want to do because of needed time / suppport / ...) or 2) Drop support for 8-bit devices.
Any ideas? What about monochrome devices? They surely could use some dithering...