Skip to content

Android FPS Monitor shows UI frame rate for JS frame rate #50338

Open
@mobinni

Description

@mobinni

Description

When opening the FPS monitor on Android the JS thread FPS and UI FPS are a copy of each other, which I believe means the JS FPS in the monitor is actually just a representation of the UI thread FPS?

Steps to reproduce

  1. Open an app in android debug mode
  2. Open the FPS monitor
  3. Values always align

React Native Version

0.77.1

Affected Platforms

Runtime - Android

Output of npx @react-native-community/cli info

System:
  OS: macOS 14.7
  CPU: (12) arm64 Apple M3 Pro
  Memory: 164.69 MB / 36.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.13.0
    path: ~/.local/share/mise/installs/node/22/bin/node
  Yarn:
    version: 1.22.22
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.9.2
    path: ~/.local/share/mise/installs/node/22/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.15.2
    path: /Users/mbinni/.local/share/mise/installs/ruby/3.2/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.2
      - iOS 18.2
      - macOS 15.2
      - tvOS 18.2
      - visionOS 2.2
      - watchOS 11.2
  Android SDK:
    API Levels:
      - "34"
      - "35"
    Build Tools:
      - 34.0.0
      - 35.0.0
    System Images:
      - android-35 | Google Play ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.23339.11.2421.12550806
  Xcode:
    version: 16.2/16C5032a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.2
    path: /Users/mbinni/.local/share/mise/installs/java/17/bin/javac
  Ruby:
    version: 3.2.5
    path: /Users/mbinni/.local/share/mise/installs/ruby/3.2/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react: Not Found
  react-native: Not Found
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Stacktrace or Logs

N/A

Reproducer

https://snack.expo.dev/@mobinni/thankful-red-truffle

Screenshots and Videos

Screen.Recording.2025-03-27.at.3.20.24.PM.mov

The other FPS monitor you see is the PerformanceMonitor from reanimated: https://github.com/software-mansion/react-native-reanimated/blob/main/packages/react-native-reanimated/src/component/PerformanceMonitor.tsx

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions