Skip to content

raisin::MaterialTextureBudgetRecommendation ​

struct · #include <rayrai/RenderDiagnostics.hpp>

Texture-memory fallback suggestion (RayraiWindow::recommendMaterialTextureBudget()). Never applied automatically and never unloads textures.

When over budget it suggests anisotropy <= 4, texture mip bias >= 0.75, environment mip bias >= 0.5 and disabling reflection-probe filtering.

Public attributes ​

materialTextureReferences ​

cpp
size_t materialTextureReferences

Material texture references across all drawables (with repeats).

uniqueMaterialTextures ​

cpp
size_t uniqueMaterialTextures

Distinct GL textures among them.

materialTextureBytes ​

cpp
size_t materialTextureBytes

Estimated GPU bytes of the distinct textures.

budgetBytes ​

cpp
size_t budgetBytes

Budget used; default 128/256/512 MiB for Fast/Balanced/High, 1 GiB otherwise.

overBudget ​

cpp
bool overBudget

materialTextureBytes > budgetBytes.

changed ​

cpp
bool changed

recommendedSettings differs from the current settings.

recommendedTextureAnisotropy ​

cpp
float recommendedTextureAnisotropy

Suggested RenderQualitySettings::textureAnisotropy.

recommendedTextureMipLodBias ​

cpp
float recommendedTextureMipLodBias

Suggested RenderQualitySettings::textureMipLodBias.

recommendedPbrEnvironmentMipLodBias ​

cpp
float recommendedPbrEnvironmentMipLodBias

Suggested RenderQualitySettings::pbrEnvironmentMipLodBias.

recommendedReflectionProbeFilteringEnabled ​

cpp
bool recommendedReflectionProbeFilteringEnabled

Suggested RenderQualitySettings::reflectionProbeFilteringEnabled.

recommendedSettings ​

cpp
RenderQualitySettings recommendedSettings

Current settings with the suggestions applied.

reason ​

cpp
std::string reason

','-joined decision tags, or "within_material_texture_budget" / "over_budget_no_safe_change".

RaiSim — physics for robotics and AI.