Skip to content

raisin::DynamicQualityRecommendation ​

struct · #include <rayrai/RenderDiagnostics.hpp>

Quality reduction suggested from measured pass timings (RayraiWindow::recommendDynamicQuality()). Never applied automatically.

GPU budgets are 6 ms (Fast) and 8 ms (Balanced/Custom); High and Ultra are reported against 12 / 16.6 ms but never changed. Pass times are grouped by name: "shadow"; "scene_color", "clear_background" and "planar_reflection" (scene); "postprocess".

Public attributes ​

changed ​

cpp
bool changed

recommendedSettings differs from the input settings.

fillRateBound ​

cpp
bool fillRateBound

Scene + post-process take at least 50 % of the GPU time.

shadowBound ​

cpp
bool shadowBound

Shadow passes take at least 35 % of the GPU time.

postprocessBound ​

cpp
bool postprocessBound

Post-process takes at least 35 % and no less than the scene passes.

totalGpuMs ​

cpp
double totalGpuMs

Sum of all positive pass timings, ms.

shadowGpuMs ​

cpp
double shadowGpuMs

Sum of passes whose name contains "shadow", ms.

sceneGpuMs ​

cpp
double sceneGpuMs

Sum of the scene-color passes, ms.

postprocessGpuMs ​

cpp
double postprocessGpuMs

Sum of passes whose name contains "postprocess", ms.

targetFrameMs ​

cpp
float targetFrameMs

GPU budget for the preset, ms.

recommendedRenderScale ​

cpp
float recommendedRenderScale

Suggested viewerRenderScale (x0.85 per step, floor 0.60 Fast / 0.75 otherwise).

recommendedUpdateShadowsEveryFrame ​

cpp
bool recommendedUpdateShadowsEveryFrame

Suggested updateShadowsEveryFrame.

recommendedBloomQuality ​

cpp
int recommendedBloomQuality

Suggested bloomQuality.

recommendedScreenSpaceAoSamples ​

cpp
int recommendedScreenSpaceAoSamples

Suggested screenSpaceAoSamples.

recommendedScreenSpaceAoDenoiseEnabled ​

cpp
bool recommendedScreenSpaceAoDenoiseEnabled

Suggested screenSpaceAoDenoiseEnabled.

recommendedSettings ​

cpp
RenderQualitySettings recommendedSettings

Input settings with all suggestions applied.

reason ​

cpp
std::string reason

'+'-joined decision tags, or e.g. "within_budget", "quality_preset_preserves_fidelity".

RaiSim — physics for robotics and AI.