Added debug imgui dialog for render statistics

This commit is contained in:
Enrico Turri
2019-04-16 10:11:17 +02:00
parent 95a0adbac9
commit 9b79617eb6
3 changed files with 39 additions and 1 deletions

View File

@@ -319,7 +319,6 @@ class GLCanvas3D
}
};
private:
struct SlaCap
{
struct Triangles
@@ -392,6 +391,15 @@ private:
void render(const GLCanvas3D& canvas) const;
};
#if ENABLE_RENDER_STATISTICS
struct RenderStats
{
long long last_frame;
RenderStats() : last_frame(0) {}
};
#endif // ENABLE_RENDER_STATISTICS
wxGLCanvas* m_canvas;
wxGLContext* m_context;
#if ENABLE_RETINA_GL
@@ -447,6 +455,10 @@ private:
GCodePreviewVolumeIndex m_gcode_preview_volume_index;
#if ENABLE_RENDER_STATISTICS
RenderStats m_render_stats;
#endif // ENABLE_RENDER_STATISTICS
public:
GLCanvas3D(wxGLCanvas* canvas, Bed3D& bed, Camera& camera, GLToolbar& view_toolbar);
~GLCanvas3D();