ComfyUI Node: Fps Monitor 🕒🅡🅣🅝

Class Name

FPSMonitor

Category
real-time/control/utility
Author
RyanOnTheInside (Account age: 3947days)
Extension
Nodes for use with real-time applications of ComfyUI
Latest Updated
2025-03-04
Github Stars
0.02K

How to Install Nodes for use with real-time applications of ComfyUI

Install this extension via the ComfyUI Manager by searching for Nodes for use with real-time applications of ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Nodes for use with real-time applications of ComfyUI in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Fps Monitor 🕒🅡🅣🅝 Description

Real-time FPS feedback overlay for video/animation sequences, aiding performance monitoring and optimization.

Fps Monitor 🕒🅡🅣🅝:

The FPSMonitor node is designed to provide real-time feedback on the frame rate of a video or animation sequence by generating an overlay that displays the current and average frames per second (FPS). This node is particularly useful for AI artists and developers who need to monitor the performance of their visual content in real-time, ensuring smooth playback and identifying potential bottlenecks. By calculating both the instantaneous and average FPS, the node helps you understand the performance dynamics of your project over time. The FPSMonitor achieves this by capturing the time intervals between frames, updating a rolling window of frame times, and determining whether a redraw of the FPS overlay is necessary based on significant changes in FPS, dimensions, or other parameters. This functionality is crucial for maintaining optimal performance and visual quality in real-time applications.

Fps Monitor 🕒🅡🅣🅝 Input Parameters:

width

The width parameter specifies the width of the FPS overlay image in pixels. It determines how much horizontal space the overlay will occupy on the screen. The minimum value is 64, the maximum is 4096, and the default is 512. Adjusting this parameter allows you to fit the overlay within different screen sizes or resolutions.

height

The height parameter defines the height of the FPS overlay image in pixels. Similar to the width, it controls the vertical space the overlay will take up. The minimum value is 64, the maximum is 4096, and the default is 512. This parameter can be adjusted to accommodate different display requirements.

text_color

The text_color parameter sets the color of the text in the FPS overlay. It is an integer value representing the grayscale color intensity, where 0 is black and 255 is white. The default value is 255, which means the text will be white. This parameter allows you to customize the text color to ensure visibility against different backgrounds.

text_size

The text_size parameter controls the size of the text in the FPS overlay. It is a floating-point value that determines the scale of the text, with a minimum of 0.1, a maximum of 5.0, and a default of 1.0. Adjusting this parameter helps you ensure that the text is legible and appropriately sized for your display.

window_size

The window_size parameter specifies the number of frames over which the average FPS is calculated. It is an integer value with a minimum of 1, a maximum of 300, and a default of 60. This parameter affects the smoothness of the average FPS calculation, with larger values providing a more stable average but potentially slower response to changes in frame rate.

Fps Monitor 🕒🅡🅣🅝 Output Parameters:

IMAGE

The IMAGE output is a visual representation of the FPS overlay, showing the current and average FPS values. This output is crucial for providing real-time feedback on the performance of your visual content, allowing you to monitor and adjust as needed to maintain smooth playback.

MASK

The MASK output is a binary mask that corresponds to the FPS overlay image. It is used to define the area of the overlay, ensuring that the FPS text is correctly positioned and visible on the screen. This output is important for integrating the overlay into your visual content without interfering with the underlying image.

Fps Monitor 🕒🅡🅣🅝 Usage Tips:

  • Adjust the window_size parameter to balance between responsiveness and stability of the average FPS calculation. A smaller window size will make the average FPS more responsive to changes, while a larger window size will provide a smoother average.
  • Customize the text_color and text_size parameters to ensure that the FPS overlay is clearly visible against your content's background, enhancing readability and usability.

Fps Monitor 🕒🅡🅣🅝 Common Errors and Solutions:

"Division by zero error"

  • Explanation: This error may occur if the time interval between frames is zero, leading to a division by zero when calculating FPS.
  • Solution: Ensure that the frame times are being updated correctly and that there is a non-zero time interval between frames. You may need to check the timing mechanism in your application.

"Overlay dimensions mismatch"

  • Explanation: This error can happen if the dimensions of the overlay do not match the expected size, possibly due to incorrect width or height parameters.
  • Solution: Verify that the width and height parameters are set correctly and match the dimensions of your display or content area. Adjust them as needed to fit the overlay properly.

Fps Monitor 🕒🅡🅣🅝 Related Nodes

Go back to the extension to check out more related nodes.
Nodes for use with real-time applications of ComfyUI
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.