Skip to content

[Android] Periodic frame rate drops (60→54 FPS; 6-10 consecutive frames c. every 5 seconds) with CoreCLR on .NET 11 — regression from Mono on .NET 10 #131370

Description

@janne-hmp

Description

We are developing a real-time roguelike game (GnollHack) using .NET MAUI with SkiaSharp (SKGLView) for rendering on Android. The game targets 60 FPS and achieves this consistently on .NET 10 with the Mono runtime.

As per the post by @davidortinau last week, we tested .NET MAUI 11 Preview 6 on Android to see how it compares with Mono Runtime in .NET 10. After upgrading to .NET 11 Preview 6+ (which uses CoreCLR exclusively on Android), we observe periodic (every 5 seconds or so) frame rate drops from 60 FPS to approximately 50–54 FPS (6-10 consecutive frames drop every 5 seconds or so), causing severe stutters in the game and making the game to feel continuously very jerky. These drops occur at regular intervals regardless of scene complexity, even on screens with very little drawing. The drops are clearly visible as jerkiness/microstutters during gameplay.

This appears to be a performance regression introduced by the Mono → CoreCLR transition on Android.

If @jfversluis or @jonathanpeppers or someone else already know a solution working for this in .NET MAUI 11, please let me know.

Expected Behavior

Consistent 60 FPS rendering, matching .NET 10 (Mono) performance.

Actual Behavior

Frame rate periodically drops to 50–54 FPS at regular intervals, causing visible jerkiness. The drops occur:

  • From the very start of the application
  • Regardless of scene complexity (even with minimal drawing)
  • At consistent, periodic intervals

Attempted Mitigations (none helped)

Setting Result
DOTNET_TieredCompilation=0 No improvement
DOTNET_GCGen0MaxBudget=8000000 (128 MB) No improvement
DOTNET_gcServer=0 (Workstation GC) No improvement
Default CoreCLR settings (no tuning) Same periodic drops

Steps to Reproduce

  1. Create a .NET MAUI application targeting net11.0-android with a SkiaSharp SKGLView rendering at 60 FPS.
  2. Build and deploy to an Android device.
  3. Observe periodic frame rate drops from 60 to ~54 FPS at regular intervals.
  4. Compare with the same application targeting net10.0-android (Mono runtime) — no such drops occur.

Environment

  • .NET SDK: 11.0.100-preview.6 (or later)
  • Runtime: CoreCLR (Mono no longer available in Preview 6+)
  • Platform: Android (arm64)
  • Rendering: SkiaSharp SKGLView (OpenGL ES)
  • Target FPS: 60
  • Device: (Insert your test device and Android version here)
  • Comparison baseline: .NET 10 with Mono runtime — consistent 60 FPS, no drops

Additional Context

  • The application is a complex roguelike game with native C libraries linked via P/Invoke, FMOD audio, and multi-layer tile rendering.
  • The frame drops are not correlated with scene complexity, suggesting the cause is runtime-level periodic work (GC, thread pool, diagnostics, or other background activity) rather than application code.
  • We also encountered a separate issue where DOTNET_DiagnosticPorts in Environment.txt (previously used for Mono debugging) caused the CoreCLR runtime to suspend at startup and never resume. Removing it fixed that issue, but the periodic FPS drops remain.
  • <UseMonoRuntime>true</UseMonoRuntime> is no longer supported in .NET 11 Preview 6+, so we cannot fall back to Mono to verify the regression on the same SDK version.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions