Skip to content

Show info about static GL memory buffer#443

Merged
oitel merged 2 commits intomasterfrom
static_gl_buffer_info
Sep 1, 2022
Merged

Show info about static GL memory buffer#443
oitel merged 2 commits intomasterfrom
static_gl_buffer_info

Conversation

@oitel
Copy link
Contributor

@oitel oitel commented Aug 31, 2022

No description provided.

@oitel oitel requested a review from Grantim August 31, 2022 18:13
size_t getFPS() const { return frameCounter_.fps; }
long long getPrevFrameDrawTimeMillisec() const { return frameCounter_.drawTimeMilliSec; }

MRVIEWER_API size_t getStaticGLBufferSize() const;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add comments to public functions

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added.

Comment on lines +605 to +606
auto glBufferSizeStr = bytesString( viewer->getStaticGLBufferSize() );
ImGui::Text( "GL memory buffer: %s", glBufferSizeStr.c_str() );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use GLStaticBuffer directly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GLStaticBuffer is internal class used for rendering purposes only, there's no reason to have full access to it from other classes.

@oitel oitel merged commit f233046 into master Sep 1, 2022
@oitel oitel deleted the static_gl_buffer_info branch September 1, 2022 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants