Skip to content

XMB: Support all possible image formats for dynamic wallpapers#18868

Open
Ecco wants to merge 1 commit intolibretro:masterfrom
Ecco:master
Open

XMB: Support all possible image formats for dynamic wallpapers#18868
Ecco wants to merge 1 commit intolibretro:masterfrom
Ecco:master

Conversation

@Ecco
Copy link
Copy Markdown

@Ecco Ecco commented Mar 28, 2026

Motivation

Before this PR, only PNG wallpapers were supported. This was pretty inefficient for two reasons:

  1. Wallpapers can be photos that do not work well with PNG compression. It is frequent to have a PNG that are 10x larger than an equivalent JPEG.
  2. Because of their larger size, PNGs are much slower to load. This is not necessarily visible on a high-end device, but even medium-range devices will lag behind. For example, it is very noticeable on a Nintento Switch, where a 1920x1080 PNG wallpaper will take several seconds to load and show up.

In other words, PNGs waste both time and storage.

Description

This pull requests tries to load wallpapers according to the image formats that RetroArch supports. Before this PR, XMB would always try to look up .png files, even if HAVE_RPNG was not set.

The behavior is similar to what RetroArch already does for thumbnails, and uses the same priority order: it will first try PNG, then JPEG, then BMP, and finally TGA, and will use whichever image it finds first, if any.

The png extension was hardcoded, no matter what image format was
supported. We now dynamically check for supported image formats and look
for the corresponding extension.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant