Skip to content

Android Vulkan: fix 9-screen tiling, flashing textures, and low FPS on Samsung One UI / Adreno 740 - #294

Merged
winnerspiros merged 4 commits into
masterfrom
copilot/fix-vulkan-glitching-textures
May 3, 2026
Merged

Android Vulkan: fix 9-screen tiling, flashing textures, and low FPS on Samsung One UI / Adreno 740#294
winnerspiros merged 4 commits into
masterfrom
copilot/fix-vulkan-glitching-textures

Conversation

Copilot AI commented May 3, 2026

Copy link
Copy Markdown
  • Diagnose: TestMissingScores NullReferenceException — GetBeatmapAsync returns null in test, CardContentBeatmap crashes on beatmap.BeatmapSet!
  • Diagnose: Windows test timeout — all 6+ DLLs run sequentially, Linux=62min, Windows=120+min
  • Fix ResultsScreen.cs line 128: replace null-forgiving ! with ??= placeholder — fixes TestMissingScores
  • Split CI test matrix into 2 parallel groups (game: osu.Game.Tests + Tournament + Templates; rulesets: all 4 ruleset DLLs) — 4 jobs run concurrently, Windows finishes each in ~60 min
  • Lower per-job timeout-minutes from 120 → 90
  • Fix grammar in OsuGameActivity RGB565 log message

Copilot AI and others added 2 commits May 3, 2026 02:29
…One UI / Adreno 740)

Root cause: Window.SetSustainedPerformanceMode(true) triggered a Samsung One UI
display-mode transition that recreated the SurfaceView as RGB565. The reactive
SurfaceChanged guard called SetFormat(RGBA8888) causing a second teardown. During
that teardown, the ANativeWindow transiently reported scaled (dp) dimensions
(1029×480 on a 3088×1440 3×-density panel). Veldrid baked those as the permanent
swapchain size → 3×3 tiling, blurry textures, and ~40fps.

Fixes:
- Remove SetSustainedPerformanceMode(true) entirely; ADPF is covered by Oboe's
  setPerformanceHintEnabled and GC latency by AndroidHighPerformanceSessionManager
- Add proactive Window.SetFormat(RGBA8888) before base.OnCreate() so SDL's
  SurfaceView is born with RGBA8888, eliminating the startup teardown
- Upgrade reactive SurfaceChanged guard to also log to Runtime (not just
  Performance) so any future mid-session RGB565 resets are immediately visible
- Update all stale comments that referenced SustainedPerformanceMode

Agent-Logs-Url: https://github.com/winnerspiros/osu/sessions/3c1fa36e-ab75-466a-9437-b218eeb9fa8e

Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com>
…cate Logger.Log calls

Agent-Logs-Url: https://github.com/winnerspiros/osu/sessions/3c1fa36e-ab75-466a-9437-b218eeb9fa8e

Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com>
Copilot AI and others added 2 commits May 3, 2026 09:01
…matrix

ResultsScreen.cs: GetBeatmapAsync can return null when the online ID is unknown
(e.g. in the TestMissingScores test which returns empty scores). Replace the
null-forgiving ! with a proper ??= placeholder matching the SubScreenBeatmapSelect
pattern. Fixes the Linux test-results reporter failure.

ci.yml: Split the test matrix into two parallel groups per OS (game: osu.Game.Tests
+ Tournament + Templates; rulesets: 4 ruleset DLLs). Each group runs in ~half the
total time, so Windows runners (~2-3× slower than Linux) complete each group in
~60 min instead of exceeding the 120 min wall-clock budget for the full suite.
Per-job timeout reduced from 120 → 90 min (right-sized for a single group).

Agent-Logs-Url: https://github.com/winnerspiros/osu/sessions/4f0e240e-6ec5-4f03-abaf-c0a6e6e7a448

Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com>
Copilot AI requested a review from winnerspiros May 3, 2026 09:04
@winnerspiros
winnerspiros marked this pull request as ready for review May 3, 2026 09:12
Copilot AI review requested due to automatic review settings May 3, 2026 09:12
@winnerspiros
winnerspiros merged commit baec2e6 into master May 3, 2026
19 checks passed
@gitar-bot

gitar-bot Bot commented May 3, 2026

Copy link
Copy Markdown

Important

You are using the Gitar free plan. Upgrade to unlock code review, CI analysis, auto-apply, custom automations, and more.

Gitar

Copilot AI removed the request for review from Copilot May 3, 2026 09:35
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