Skip to content

Resolve Vulkan performance gap and flickering on Adreno 7xx GPUs - #140

Merged
winnerspiros merged 2 commits into
masterfrom
fix/android-vulkan-adreno-performance-flicker-13806510936200067795
Apr 2, 2026
Merged

Resolve Vulkan performance gap and flickering on Adreno 7xx GPUs#140
winnerspiros merged 2 commits into
masterfrom
fix/android-vulkan-adreno-performance-flicker-13806510936200067795

Conversation

@google-labs-jules

Copy link
Copy Markdown

Addressing the Vulkan performance gap (half FPS) and flickering on modern Adreno 7xx GPUs (S23 Ultra).

Key Implementation Details:

  • Native Layer (vulkan_bridge.cpp):
    • Enhanced hardware detection for Adreno 7xx series (Snapdragon 8 Gen 2/3).
    • Implemented extension blacklisting for VK_KHR_present_id and VK_KHR_present_wait to resolve flickering.
    • Added a flag to disable VK_EXT_graphics_pipeline_library (GPL) which is a known performance bottleneck on certain Adreno drivers.
    • Added probing for VK_EXT_surface_maintenance1 for future surface optimizations.
  • Managed Layer (OsuGameAndroid.cs):
    • Implemented early Vulkan configuration injection in 'SetHost' using environment variables (VULKAN_PRESENT_MODE, VULKAN_DISABLE_EXTENSIONS).
    • These overrides are applied before the framework initializes the Graphics Device, ensuring hardware-specific workarounds are active.
    • Forced 'MAILBOX' (Triple Buffering) present mode when supported to resolve the 60 FPS cap on 120Hz displays.
  • UI/Diagnostics (FPSCounter.cs):
    • Added 'VulkanStatus' to the expanded FPS counter HUD.
    • Real-time display of active Present Mode and override status (e.g., [NoID], [NoWait], [NoGPL]) for user verification.

PR created automatically by Jules for task 13806510936200067795 started by @winnerspiros

This change addresses the "half FPS" (60 vs 120) and flickering issues on modern Android devices like the S23 Ultra (Snapdragon 8 Gen 2/3).

- Native Bridge: Enhanced Adreno 7xx detection to blacklist VK_KHR_present_id/wait (flicker fix) and VK_EXT_graphics_pipeline_library (performance fix).
- Managed Injection: Implemented early environment variable injection in OsuGameAndroid.SetHost to force VULKAN_PRESENT_MODE=MAILBOX and VULKAN_DISABLE_EXTENSIONS based on hardware probe findings.
- Diagnostics: Added 'VulkanStatus' to the expanded FPS counter HUD, displaying active present modes (MAILBOX/FIFO) and enabled overrides ([NoID], [NoWait], [NoGPL]).
- Surface Support: Added probing for VK_EXT_surface_maintenance1 for improved frame pacing on Android 13+.
@google-labs-jules

Copy link
Copy Markdown
Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

This change addresses the "half FPS" (60 vs 120) and flickering issues on modern Android devices like the S23 Ultra (Snapdragon 8 Gen 2/3).

- Native Bridge: Enhanced Adreno 7xx detection to blacklist VK_KHR_present_id/wait (flicker fix) and VK_EXT_graphics_pipeline_library (performance fix).
- Managed Injection: Implemented early environment variable injection in OsuGameAndroid.SetHost (using fully qualified System.Environment) to force VULKAN_PRESENT_MODE=MAILBOX and VULKAN_DISABLE_EXTENSIONS based on hardware probe findings.
- Diagnostics: Added 'VulkanStatus' to the expanded FPS counter HUD, displaying active present modes (MAILBOX/FIFO) and enabled overrides ([NoID], [NoWait], [NoGPL]).
- Surface Support: Added probing for VK_EXT_surface_maintenance1 for improved frame pacing on Android 13+.
@winnerspiros
winnerspiros merged commit ed78918 into master Apr 2, 2026
7 of 15 checks passed
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