Skip to content

Add back 8-bit palette based rendering mode #6899

@ihhub

Description

@ihhub

SDL 1 has of 8-bit palette based video mode support. This mode is extremely helpful for video games which handle 8-bit graphics. We are working on fheroes2 project which by default uses 8-bit graphics. This is a game engine recreation of a 25-years game old game so we cannot change graphics.

SDL 2 somehow does not support this video mode which leads to about 20% (depending on frame size) performance drop in rendering as we have to convert 8-bit image into 32-bit image before rendering a frame. It would be awesome if SDL 2 starts supporting this mode at least for specific platforms. SDL_PIXELFORMAT_INDEX8 format is not detected from the list of formats.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions