Skip to content

overengineeringstudio/fps-meter

Repository files navigation

fps-meter

Fast and simple FPS meter for React. Renders to a canvas element and uses requestAnimationFrame to update the FPS counter.


Install

pnpm add @overengineering/fps-meter

Usage

import React from 'react'
import { FPSMeter } from '@overengineering/fps-meter'

export const MyApp: React.FC = () => {
  return (
    <div>
      <FPSMeter className="absolute right-0 top-0" height={40} />
    </div>
  )
}

About

Fast and simple FPS meter for React. Renders to a canvas element and uses requestAnimationFrame to update the FPS counter.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors