Visit ComfyUI Online for ready-to-use ComfyUI environment
Real-time FPS feedback overlay for video/animation sequences, aiding performance monitoring and optimization.
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.
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.
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.
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.
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.
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.
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.
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.
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.text_color
and text_size
parameters to ensure that the FPS overlay is clearly visible against your content's background, enhancing readability and usability.width
or height
parameters.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.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.