DiscussionsIssue archiveVisualization and 3D Viewer

Archived discussion

Memory increase when MustBeResized is called?

Visualization and 3D ViewerMon, 04/25/2022 - 10:044 replies

Browse this forum
QuestionAuthor

Memory will increase when MustBeResized is called.
Then it will not be released...

Opencascade V7.4.0
PC OpenGL 3.1

Is there a way to release the memory?

code >>>>>

Handle_V3d_View m_view
...

m_view->MustBeResized(); // <----

<<<<< code

This problem does not occur on an OpenGL 4.6 PC.

Best Regard!

Discussion

4 archived replies

Posts are displayed in their archived order.

01Commenter-1

You haven't provided details on how you have measured memory usage parameters for "Memory will increase".
In general, OpenGL driver may manage their memory as a black box in the way they would like to - in many cases this means lazy memory release.

02Author

Thank you for your advice.
I'm using "procexp.exe"(Process Explorer) to check "Private Bytes".
Memory was not released after more than 10 minutes ...

[Process Explorer]
https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer

03Commenter-1

Provided details are still too spare to share any thoughts.

04Commenter-2

you invoke MustBeResized too many times in a short time ,it is occt bug