Skip to content

assist(#940): make texture-size ceiling reversible - #163

Draft
kvnloo wants to merge 8 commits into
upstream-main-20261008-texture-ceilingfrom
assist/940-reversible-texture-ceiling
Draft

kvnloo wants to merge 8 commits into
upstream-main-20261008-texture-ceilingfrom
assist/940-reversible-texture-ceiling

Conversation

@kvnloo

@kvnloo kvnloo commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Support branch for @djabhi31's upstream bilawalsidhu#940, which fixes @BerryCurious' bilawalsidhu#905 fullscreen maximumTextureSize crash. This is not a competing upstream PR.

Credit / provenance

This branch keeps bilawalsidhu#940's crash guard and implements the reversible-ceiling follow-up from my review.

Fix

Keep requested quality separate from the hardware limit:

effectiveScale = min(requestedScale, hardwareMaxScale)

On every resize:

  • external/user scale changes become the new request;
  • the GPU ceiling only changes the effective scale;
  • when the viewport becomes safe again, the request is restored;
  • safe supersampling remains possible when hardware permits it.

Regressions pinned

  • 2560px width + MAX_TEXTURE_SIZE=2048 + requested 1.0 -> clamp to 0.8.
  • Shrink to 1920px -> restore 1.0.
  • Explicit lower request after clamping remains lower after the viewport becomes safe.
  • Requested 1.5 supersampling remains 1.5 when safe, clamps to 1.28 when required, then restores to 1.5.

Scope

Current upstream main@95fa8162; five files only. The format-scope and package-boundary edits are merged onto current main rather than copied from bilawalsidhu#940's older base.

Intended handoff

Exact-head CI should validate this as a concrete patch/reference for @djabhi31 to cherry-pick or reproduce on bilawalsidhu#940.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

keep pr-janitor: never auto-close

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant