Skip to content

rdevz-ph/FPS-Meter-Android

Repository files navigation

FPS Meter Android

API Kotlin License Version

A high-performance, lightweight FPS monitoring tool for Android. This application provides a real-time frame rate overlay inspired by the Samsung Perf Z aesthetic, offering a professional monitoring experience for mobile gaming and performance testing.

How It Works

Note

Here is a high-level overview of how the application operates:

  • FPS Calculation: Uses Android's Choreographer API to receive frame callbacks, measuring elapsed time to calculate real-time frames per second (FPS). Frame time (MS) is derived directly from this rate.
  • Thermal Monitoring: Registers a dynamic BroadcastReceiver for Intent.ACTION_BATTERY_CHANGED to read and display the current battery/device temperature in real time.
  • Overlay View: Starts a foreground service (FpsOverlayService) that utilizes the Android WindowManager to draw a floating pill-shaped overlay using the SYSTEM_ALERT_WINDOW permission.
  • Interaction & Dragging: Tracks touch gestures using an OnTouchListener to support real-time dragging. The updated layout coordinates are saved in SharedPreferences on gesture completion to persist the custom location.
  • Shizuku Integration: Runs a shell command (appops set <package> SYSTEM_ALERT_WINDOW allow) via a Shizuku process to auto-grant the overlay permission, removing the need for manual settings navigation.

Download latest version

Navigate to the Releases page to download the latest APK.

Screenshots

Light Mode Dark Mode
Light Mode Dark Mode

Features

Samsung-Style Aesthetic

The overlay utilizes a pill-shaped background with high-contrast, color-coded metrics for optimal visibility.

  • Labels (FPS, MS, TEMP): Displayed in Cyan (#00E5FF).
  • Values: Rendered in White for clarity.
  • Dynamic FPS Color: The FPS value automatically changes color (Green, Yellow, Red) based on real-time performance thresholds.

Improved Horizontal Layout

The metrics are presented in a compact horizontal display using pipe separators (|). This design minimizes screen obstruction while providing essential performance data at a glance.

Position Presets

Quick-snap presets allow for instant positioning across six key screen locations:

  • Top Left, Top Center, Top Right
  • Bottom Left, Bottom Center, Bottom Right
  • Manual dragging is fully supported for custom placement.

Real-time Updates

Configuration changes apply immediately to the active overlay. Adjustments to text size, opacity, color mode, and visibility do not require a service restart.

Shizuku Integration (Optional)

The setup process includes an optional Shizuku panel to auto-grant the "Display over other apps" permission, bypassing the need for manual navigation through system settings.

Requirements

  • Android 8.0+ (API 26)
  • Overlay Permission (SYSTEM_ALERT_WINDOW)

Developer

Built by rdevz-ph GitHub Profile

License

This project is licensed under the MIT License.

About

A high-performance, lightweight FPS monitoring tool for Android. This application provides a real-time frame rate overlay inspired by the Samsung Perf Z aesthetic, offering a professional monitoring experience for mobile gaming and performance testing.

Topics

Resources

License

Stars

6 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages