The built-in library’s Picture category holds each picture setting with the screen that helps set it: Brightness and Calibrate Brightness (while HDR is off), HDR Brightness, HDR Peak Brightness and Calibrate HDR (while HDR is on), Screen Margins and Adjust Screen Margins. Display ends with Performance Overlay, and the Graphics rows show a Video Memory meter in their detail. Everything here works without assets: the screens, the patterns and the overlay are drawn in code.
Let players calibrate brightness
Calibrate Brightness opens a screen with three square marks on pure black, labelled Not visible, Barely visible and Visible. The player changes Brightness until each mark matches the word under it, in the light they usually play in. Every change shows at once.
- Done (A, Enter) keeps the value: it applies and saves Brightness only, without the keep-or-revert question, since the player has just seen the result. Other changes waiting in the settings screen keep waiting.
- Cancel (B, Escape), the gamepad’s Menu button and every close from outside (a map change, Remove All Widgets) put back the value from when the screen opened.
- Reset (Y, R) returns to the default; at the ends of the range a press plays the Error sound.
The marks are 8-bit greys at your project’s display gamma, 2, 6 and 12 by default, drawn through the same curve as the game’s picture, so Brightness moves them exactly as it moves your scenes. The best levels depend on your game’s darkest important detail and on displays (an LCD’s backlight never shows true black, an OLED does). Change them in your collection:
- Tools > Rolly > Create Settings Collection from Defaults…, or open your collection.
- Select Calibrate Brightness, then its Binding, and set Not Visible Level, Barely Visible Level and Visible Level. They must rise; the check on save says so when they do not.
The screen opens only while Brightness shows, so in HDR it stays shut and Calibrate HDR takes its place.
Let players calibrate HDR
HDR Peak Brightness tells the engine how bright the player’s display gets, so the tonemapper keeps detail in highlights up to that level. System uses the peak the display under the game’s window reports, and the row names it (“System (1000 nits)”); a display that reports none gets the Info fact “Your display does not report its peak. Calibrate HDR to set it.” On Windows the report is read from the display itself, because Direct3D gives the engine 1000 nits for a display that reports none; other platforms pass no report on, so System has no number there. The values from 300 to 6000 nits turn the engine’s HDR calibration on at that peak. The engine saves the choice in GameUserSettings.ini.
On UE 5.7: the engine has no reported peak, so System is the engine’s 1000 nits, the row shows no number and no fact about the report, and 1000 nits is not offered beside System.
Calibrate HDR sets HDR Peak Brightness and HDR Brightness in two steps:
- HDR Peak Brightness: a checker box of 8 x 4 squares covering 10 % of the player’s area, on a field at 1 nit. The player raises the value until the grey squares just disappear into the white ones. While this step shows, Rolly Settings raises
r.HDR.UI.Levelso the white squares lie above any display’s peak, and draws everything else on the screen (text, row, prompts, focus) at the light it has on other screens. - HDR Brightness: a white page with grey text bars over a dark gradient, at the interface level the game uses. The whole screen brightens and dims with the value; Left and Right move 10 nits.
On UE 5.7: the engine has no paper white, so Rolly Settings keeps HDR Brightness in RollySettings.ini and applies it as the value divided by 203 nits to r.HDR.Aces.SceneColorMultiplier and r.HDR.UI.Luminance, times the values they had before (203 nits changes nothing). Your project should not also set these two variables while the game runs.
Next and Back keep both values; Done applies and saves both; Cancel and Menu restore both. Values only tried are not saved, so a game that ends mid-calibration starts with the values from before. r.HDR.UI.Level returns to its value on leaving the first step, on every close and in the Play In Editor restore. If HDR goes away while the screen is open, the screen cancels and a toast says “HDR is off, so calibration stopped.”: HDR turned off for the display, or the window moved to a display that is not in HDR mode. The engine turns HDR on per window, for the display that shows most of it, and on Direct3D 11 and 12 the settings follow that display: while the window is on a display without HDR, the HDR row says “This display is not in HDR mode, so the game shows SDR on it.” and Calibrate HDR locks with “Move the game to a display with HDR on.” Both calibration actions lock with “Apply the HDR change first.” while a change of HDR waits for Apply, because the patterns measure the output in effect.
Let players fit the screen margins
Adjust Screen Margins shows a frame drawn from the safe area the engine reports, with a corner mark in each corner, over the game dimmed behind the backdrop. The player increases Screen Margins until all four marks show in full on their TV. Up and Right move the corners in, Down and Left out, and Reset returns to 0 %, where the marks sit on the screen’s edges. Every Safe Zone widget of your HUD moves with the frame while the screen is open, so the player sees the result on your interface.
With one player, the corner marks can also be dragged with the mouse. In split screen the frame covers the whole screen over every player, while the card with the row stays in the opening player’s area and only that player’s input reaches it.
Open a calibration from game code
A first-start flow can ask for brightness and margins before the main menu. The screens open over whatever is on the player’s screen stack, with or without the settings screen.
Blueprint
Open Rolly Calibration with the player controller and the Calibration (Brightness, HDR, Screen Margins, or Sticks for Test Sticks) waits until the screen ends: Done when the player kept the values, Cancelled when they cancelled, when the screen was closed from outside, or when it could not open (HDR off for the HDR screen). Get Rolly Settings UI also has Open Brightness Calibration, Open HDR Calibration and Open Screen Margins, which return the screen (none when it cannot open).
C++
#include "Calibration/RollySettingsCalibrationScreen.h"
#include "Screens/RollySettingsUISubsystem.h"
void UMyFirstStartFlow::AskForBrightness(ULocalPlayer* Player)
{
URollySettingsUISubsystem* SettingsUI = URollySettingsUISubsystem::Get(Player);
URollySettingsCalibrationScreen* Screen = SettingsUI != nullptr ? SettingsUI->OpenCalibration(ERollySettingsCalibration::Brightness) : nullptr;
if (Screen == nullptr)
{
ContinueFlow();
return;
}
Screen->OnEnded().AddUObject(this, &UMyFirstStartFlow::HandleBrightnessEnded);
}Show the performance overlay
Performance Overlay in Display shows numbers on a plate in a corner of the screen, inside the safe area (so it moves with Screen Margins), above every screen and never in the way of input:
| Level | Shows |
|---|---|
| Off | Nothing; nothing is created or measured |
| Frame Rate | “72 FPS” |
| Frame Times | FPS, Frame, Game (game thread), Render (render thread), GPU (only while the engine measures the graphics card) |
| Detailed | The frame times, Latency (only while a latency technology such as NVIDIA Reflex reports it), Memory (the game process), video memory (as the meter below) and a graph of the last two seconds of frame times |
The numbers come from engine values that exist in every build, Shipping included; no stat command or console is needed. They refresh four times a second and average the last half second. The overlay samples frames only while it is on screen, and it hides while a calibration screen is open. A Remove All Widgets of your menu flow takes it off with every other viewport widget; it is back on the next frame. On a short viewport (below 800 units) Detailed flows into two columns; in split screen one overlay sits in player 1’s corner.
Pick the corner in Project Settings > Plugins > Rolly Settings Screen > Performance Overlay Corner (Top Left by default). Performance Overlay Class takes a Blueprint subclass whose layout binds the parts Plate, Lines (a Grid Panel the overlay fills) and Graph.
Read the numbers in your own C++ HUD
The overlay’s sampler is shared. Add yourself as a user while your HUD shows the numbers, so frames are sampled only then:
#include "Monitoring/RollySettingsPerformanceSubsystem.h"
void UMyStatsWidget::NativeConstruct()
{
Super::NativeConstruct();
if (URollySettingsPerformanceSubsystem* Performance = URollySettingsPerformanceSubsystem::Get(GetGameInstance()))
{
Performance->GetSampler().AddUser();
}
}
FText UMyStatsWidget::GetFrameRateText() const
{
const URollySettingsPerformanceSubsystem* Performance = URollySettingsPerformanceSubsystem::Get(GetGameInstance());
const float FramesPerSecond = Performance != nullptr ? Performance->GetSampler().GetAverage(0.5f).FramesPerSecond : 0.0f;
return FText::AsNumber(FMath::RoundToInt(FramesPerSecond));
}Call RemoveUser in NativeDestruct. Get Overlay Level (Blueprint) tells which level the player chose, and On Overlay Level Changed fires when it changes.
Show video memory on graphics rows
A category’s Show Video Memory flag (on for Graphics in the built-in library) adds a meter to the detail of its rows: “Video memory”, “6.1 of 8.0 GB”, a bar of this game’s use and other programs’ use, and a sentence. Set the flag on any category of your collection where settings cost video memory.
- On Direct3D 12 (Windows) the figures are measured: the game’s own use and the budget the system gives it, so “This game: 6.1 GB. Other programs: 0.8 GB.”
- On other rendering interfaces they are partial: “Texture memory”, textures and render targets only, with “Textures and screen buffers only. The game uses more.”
- While a texture change waits for Apply (Textures or Overall Quality), the meter projects the texture streaming pool’s change, from the
r.Streaming.PoolSizeof each Textures level in your scalability configuration: “About 7.3 GB after you apply (textures only).” It does so only while that pool is the one in effect: a pool your project sets in[SystemSettings]or a device profile, or fixes withr.Streaming.UseFixedPoolSize=1, stays where it is whatever Textures says, so the meter says “Changes waiting for Apply count once applied.” instead. Above the card’s memory it warns: “About 8.6 GB after you apply: more than the card has. Expect stutter and blurry textures.” Other waiting changes cannot be projected (“Changes waiting for Apply count once applied.”), and right after Apply the figures settle for up to 10 seconds (“Updating while textures load.”). - In the editor an extra line says the figures include the editor’s own memory.
The meter reads the figures once a second while it shows and never otherwise. In narrow layouts, where the detail is a strip under the list, the meter becomes one fact (“Video memory: 6.1 of 8.0 GB.”), and a projection above the card leads the line with its warning icon. Short areas keep no line for facts under a description, so there the figures follow the description in the strip’s line, and a projection above the card takes the description’s place with its warning sentence. Without figures (the null renderer) there is no meter.
Change the screens’ layouts
Project Settings > Plugins > Rolly Settings Screen names the classes: Brightness Calibration Screen Class, HDR Calibration Screen Class and Screen Margins Screen Class. A Blueprint subclass with a layout of its own binds the parts by name: StepText, TitleText, InstructionText, TipText, Pattern (a Size Box or any panel: the screen puts its pattern in it), RowSlot (the same for the row), PromptBar, PlayerBadge (leads the first line in split screen) and TouchBackButton (shown on touch screens); the brightness and HDR screens add Field, the margins screen Backdrop, Frame and Card. Parts left out turn their feature off. The video memory meter is the settings screen’s VideoMemoryMeter part; a layout of its own for the meter binds LabelText, AmountText, Bar, WarningIcon, SentenceText and EditorNoteText. The screens keep the theme’s fonts, sizes and focus style; their colours are the theme’s when they read on pure black, otherwise the theme’s High Contrast Colours (Paper is drawn that way).
Limits
- While the HDR peak step shows,
r.HDR.UI.Levelis raised for the whole game: other players’ views and toasts are brighter for that time. A level set at a higher priority (the console, the command line) is left alone, and the step then shows the white squares at that level. - The patterns’ levels and the HDR steps are checked on real displays only by playing them: an automated picture is SDR.
- The display under the window is known on Direct3D 11 and 12 only. With other rendering interfaces a window moved to a display without HDR keeps the HDR settings and the calibration as they are, and no display reports its peak (System then has no number).
- Corner marks can be dragged only with one player; in split screen the keys and the row’s slider set the margins.
- The video memory projection covers the texture streaming pool only; ray tracing, shadows and other settings change what the game uses in ways no setting can tell before they run.
Problems by what you see: Troubleshooting.