1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-18 14:27:39 +03:00

0029346: Visualization, TKOpenGl - collect frame statistics

Graphic3d_RenderingParams::ToShowStats - new option displaying rendering statistics.

OpenGl_FrameStats - new class for accumulating frame statistics.
OpenGl_Context::FrameStats() provides an access to the frame stats
used for currently rendered context.
OpenGl_View::Redraw() and OpenGl_View::RedrawImmediate()
resets counters within OpenGl_Context::FrameStats().

OpenGl_Layer::UpdateCulling() - simplified resetting of culling state for cullable structures.
This commit is contained in:
kgv
2017-11-24 18:43:01 +03:00
committed by bugmaster
parent ab3ff92cc0
commit 15669413da
36 changed files with 1449 additions and 107 deletions

View File

@@ -114,10 +114,10 @@ protected:
friend class OpenGl_Trihedron;
friend class OpenGl_GraduatedTrihedron;
private:
//! Release cached VBO resources
void releaseVbos (OpenGl_Context* theCtx);
Standard_EXPORT void releaseVbos (OpenGl_Context* theCtx);
private:
//! Setup matrix.
void setupMatrix (const Handle(OpenGl_Context)& theCtx,