mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0031505: Point Cloud Rendering - fix on-screen statistics about number of visible points
OpenGl_Element now provide methods ::UpdateMemStats() and ::UpdateDrawStats() for unified request of statistics used by OpenGl_FrameStats instead of direct handling of OpenGl_PrimitiveArray. Graphic3d_FrameStatsCounter counters list has been extended by Graphic3d_FrameStatsCounter_NbLinesNotCulled.
This commit is contained in:
@@ -11325,6 +11325,7 @@ static Standard_Boolean parsePerfStatsFlag (const TCollection_AsciiString& theVa
|
||||
|| aVal == "triangles") aFlag = Graphic3d_RenderingParams::PerfCounters_Triangles;
|
||||
else if (aVal == "pnts"
|
||||
|| aVal == "points") aFlag = Graphic3d_RenderingParams::PerfCounters_Points;
|
||||
else if (aVal == "lines") aFlag = Graphic3d_RenderingParams::PerfCounters_Lines;
|
||||
else if (aVal == "mem"
|
||||
|| aVal == "gpumem"
|
||||
|| aVal == "estimmem") aFlag = Graphic3d_RenderingParams::PerfCounters_EstimMem;
|
||||
@@ -11519,6 +11520,10 @@ static Standard_Integer VRenderParams (Draw_Interpretor& theDI,
|
||||
{
|
||||
theDI << " tris";
|
||||
}
|
||||
if ((aParams.CollectedStats & Graphic3d_RenderingParams::PerfCounters_Lines) != 0)
|
||||
{
|
||||
theDI << " lines";
|
||||
}
|
||||
if ((aParams.CollectedStats & Graphic3d_RenderingParams::PerfCounters_Points) != 0)
|
||||
{
|
||||
theDI << " pnts";
|
||||
@@ -12496,6 +12501,7 @@ static Standard_Integer VStatProfiler (Draw_Interpretor& theDI,
|
||||
|| aFlag == "pointarrays"
|
||||
|| aFlag == "textarrays") aParam = Graphic3d_RenderingParams::PerfCounters_GroupArrays;
|
||||
else if (aFlag == "triangles") aParam = Graphic3d_RenderingParams::PerfCounters_Triangles;
|
||||
else if (aFlag == "lines") aParam = Graphic3d_RenderingParams::PerfCounters_Lines;
|
||||
else if (aFlag == "points") aParam = Graphic3d_RenderingParams::PerfCounters_Points;
|
||||
else if (aFlag == "geommem"
|
||||
|| aFlag == "texturemem"
|
||||
|
Reference in New Issue
Block a user