# RefreshRate

> Represents the display refresh rate, or the number of frames the display can show per second.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine](/engine/7000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule
* **Implements:** [IEquatable\<RefreshRate>](https://learn.microsoft.com/dotnet/api/system.iequatable-1), [IComparable\<RefreshRate>](https://learn.microsoft.com/dotnet/api/system.icomparable-1)

```csharp
public struct RefreshRate : IEquatable<RefreshRate>, IComparable<RefreshRate>
```

## Remarks

A display refresh rate is always a rational number expressed as a fraction with a numerator and a denominator. For example, a 59.94 Hz display might have a numerator of 60000 and a denominator of 1001.

Pass a `RefreshRate` to [Screen.SetResolution](/engine/7000.0/script-reference/unityengine/screen/setresolution.md) to request a specific refresh rate. To find the rates a display supports, read [Resolution.refreshRateRatio](/engine/7000.0/script-reference/unityengine/resolution/refreshrateratio.md) from each entry in [Screen.resolutions](/engine/7000.0/script-reference/unityengine/screen/resolutions.md).

**Note:** [Screen.SetResolution](/engine/7000.0/script-reference/unityengine/screen/setresolution.md) applies the requested refresh rate only in [FullScreenMode.ExclusiveFullScreen](/engine/7000.0/script-reference/unityengine/fullscreenmode/exclusivefullscreen.md). Only the Windows standalone Player supports this mode, and only when it uses the D3D11 or D3D12 graphics API. In all other cases, the request falls back to [FullScreenMode.FullScreenWindow](/engine/7000.0/script-reference/unityengine/fullscreenmode/fullscreenwindow.md), which keeps the display's current refresh rate.

Additional Resources: [Resolution](/engine/7000.0/script-reference/unityengine/resolution.md), [Screen.currentResolution](/engine/7000.0/script-reference/unityengine/screen/currentresolution.md), [Screen.SetResolution](/engine/7000.0/script-reference/unityengine/screen/setresolution.md).

## Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    // Prints the refresh rate of every mode the monitor supports.
    void Start()
    {
        foreach (Resolution resolution in Screen.resolutions)
        {
            RefreshRate rate = resolution.refreshRateRatio;

            // A 59.94 Hz mode reports as 60000/1001.
            Debug.Log(resolution.width + "x" + resolution.height + " at " +
                      rate.numerator + "/" + rate.denominator +
                      " (" + rate.value + " Hz)");
        }
    }
}
```

## Fields

| Value                                                                                 | Description                               |
| ------------------------------------------------------------------------------------- | ----------------------------------------- |
| [denominator](/engine/7000.0/script-reference/unityengine/refreshrate/denominator.md) | Denominator of the refresh rate fraction. |
| [numerator](/engine/7000.0/script-reference/unityengine/refreshrate/numerator.md)     | Numerator of the refresh rate fraction.   |

## Properties

| Property                                                                  | Description                                       |
| ------------------------------------------------------------------------- | ------------------------------------------------- |
| [value](/engine/7000.0/script-reference/unityengine/refreshrate/value.md) | The numerical value of the refresh rate in hertz. |

## Methods

| Method                                                                                | Description                                  |
| ------------------------------------------------------------------------------------- | -------------------------------------------- |
| [Equals](/engine/7000.0/script-reference/unityengine/refreshrate/equals.md)           | Returns true if the refresh rates are equal. |
| [GetHashCode](/engine/7000.0/script-reference/unityengine/refreshrate/gethashcode.md) | Returns the hash code for this refresh rate. |

## Operators

| Operator                                                                                | Description                                    |
| --------------------------------------------------------------------------------------- | ---------------------------------------------- |
| [operator ==](/engine/7000.0/script-reference/unityengine/refreshrate/op-equality.md)   | Returns true if two refresh rates are equal.   |
| [operator !=](/engine/7000.0/script-reference/unityengine/refreshrate/op-inequality.md) | Returns true if two refresh rates are unequal. |
