raisin::WaterDiagnostics
struct · #include <rayrai/Water.hpp>
Renderer state of the water bodies (RayraiWindow::waterDiagnostics()).
Describes the last color render of the scene. Everything but bodyCount is zero (false) when that render had no water body in view and the camera was not under water.
Public attributes
bodyCount
size_t bodyCountRegistered water bodies.
bodiesDrawn
size_t bodiesDrawnBodies drawn.
tilesDrawn
size_t tilesDrawnSurface mesh tiles drawn.
trianglesDrawn
size_t trianglesDrawnTriangles of the surface mesh drawn per pass over it (the mesh is drawn once per render, and once more to compose multisampled edges).
sceneCaptured
bool sceneCapturedThe scene color and depth were copied for refraction.
screenSpaceReflections
bool screenSpaceReflectionsOn-screen objects were reflected.
cameraUnderwater
bool cameraUnderwaterThe camera was inside a body: below its surface (and above a rectangle's bottom).
underwaterFogDrawn
bool underwaterFogDrawnThe underwater view pass ran (needs RenderQualitySettings::waterUnderwaterView).
skyCaptureFaceSize
int skyCaptureFaceSizeFace size of the reflected sky cubemap, pixels.
skyCaptures
size_t skyCapturesTimes the reflected sky cubemap was drawn; it is kept while the sky it reflects is unchanged.
timeSeconds
double timeSecondsWater time of the render.
flowBodies
size_t flowBodiesSimulated bodies (WaterFlow) updated for the render.
flowSteps
size_t flowStepsSimulation steps the update took, over all simulated bodies.
flowTimeDropped
double flowTimeDroppedWater time the simulations skipped because catching up needed more steps than one render takes (a stalled or very slow frame), seconds.