Skip to content

Subpixel‐aware downscaling filters#2024

Draft
dkoukola wants to merge 8 commits intoValveSoftware:masterfrom
dkoukola:subpixel-downscale
Draft

Subpixel‐aware downscaling filters#2024
dkoukola wants to merge 8 commits intoValveSoftware:masterfrom
dkoukola:subpixel-downscale

Conversation

@dkoukola
Copy link
Copy Markdown

@dkoukola dkoukola commented Nov 27, 2025

I’ve been playing around with subpixel‐aware downscaling filters and, for testing purposes, I’ve tried implementing them into gamescope. There are currently four filters available:

subpixel_rgb – horizontal RGB subpixel layout (3:1 ratio)
subpixel_vbgr – vertical BGR subpixel layout (3:1 ratio)
subpixel_oled – RG/B subpixel layout (2:1 ratio)
subpixel_qdoled – G/RB subpixel layout (2:1 ratio)

As of now they only work with the fixed scaling ratios listed above, i.e. they can be used like this:

gamescope -F subpixel_rgb -w 5760 -h 3240 -W 1920 -H 1080 -- <command>
gamescope -F subpixel_oled -w 3840 -h 2160 -W 1920 -H 1080 -- <command>

The aim was the highest possible quality; performance has not yet been optimized at all.

They also still produce some artifacts, such as black halos around some sharp edges, which I haven’t managed to fix yet.

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