mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 17:58:03 -06:00
Added imgui debug dialog for render statistics
This commit is contained in:
parent
d2d06c9f73
commit
d2597482e0
3 changed files with 39 additions and 2 deletions
|
@ -319,7 +319,6 @@ class GLCanvas3D
|
|||
}
|
||||
};
|
||||
|
||||
private:
|
||||
struct SlaCap
|
||||
{
|
||||
struct Triangles
|
||||
|
@ -399,6 +398,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
|
||||
|
||||
public:
|
||||
enum ECursorType : unsigned char
|
||||
{
|
||||
|
@ -464,6 +472,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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue