Skip to content

Added 2/4x supersampling#601

Open
hurleybird wants to merge 1 commit into
luciusDXL:masterfrom
hurleybird:Supersampling
Open

Added 2/4x supersampling#601
hurleybird wants to merge 1 commit into
luciusDXL:masterfrom
hurleybird:Supersampling

Conversation

@hurleybird
Copy link
Copy Markdown

@hurleybird hurleybird commented May 9, 2026

My favorite way to play old 3D games is at a low resolution with supersampling. High resolutions tend to expose low asset quality, but low resolutions are marred by unseemly stair-stepping. Supersampling gives the best of both worlds.

Supersampled DF

Full disclosure, in case it matters: I used Codex to add the feature (I don't have much of any OpenGL experience to speak of). I've done some testing and due diligence (works with all the various graphics options that I could find, resizing the windows works, supersampling initially broke vanilla sky, but got it working). Nonetheless you may want to take that into account when looking things over.

@hurleybird hurleybird changed the title Added 2/4x supersampling. Added 2/4x supersampling May 9, 2026
@mlauss2
Copy link
Copy Markdown
Contributor

mlauss2 commented May 10, 2026

I tried this, but I see no visual difference at all with 2x or 4x (2560x1600 res, no bilinear filter). How can I tell it's actually on?

@hurleybird
Copy link
Copy Markdown
Author

hurleybird commented May 10, 2026

Try with a lower resolution, like 480 or 600p.

I think it looks best with 8-bit (I like interpolated, but either) non-dithered, since SSAA is able to clean up the stair stepping between texels.

@mlauss2
Copy link
Copy Markdown
Contributor

mlauss2 commented May 10, 2026

Try with a lower resolution, like 480 or 600p.

I think it looks best with 8-bit (I like interpolated, but either) non-dithered, since SSAA is able to clean up the stair stepping between texels.

Thanks, I see it now. Great work! Over 800x600 it's barely noticeable, but makes a ton of difference if played at the original 320x200 resolution.

@hurleybird
Copy link
Copy Markdown
Author

Try with a lower resolution, like 480 or 600p.
I think it looks best with 8-bit (I like interpolated, but either) non-dithered, since SSAA is able to clean up the stair stepping between texels.

Thanks, I see it now. Great work! Over 800x600 it's barely noticeable, but makes a ton of difference if played at the original 320x200 resolution.

Thank you! It's visible to me even at 4K, but I have a big display and I'm sensitive to stair stepping and temporal noise. But yeah, outsized difference at low res (which is my preference for old 3D games)

Copy link
Copy Markdown
Contributor

@mlauss2 mlauss2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the rest looks okay to me, pretty clean and introduces no new build warnings.

{
supersamplingIndex = 2;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

supersamplingIndex = graphics->supersampling >> 1 ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about e.g. 8x/16x ? would they make any meaningful visual difference?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe, but I somewhat doubt it. I can't remember seeing anything do >4x before. I imagine that eventually you'd run into performance issues, and issues with exceeding max supported texture size on some GPUs.

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.

2 participants