openglonmetal / MGL

OpenGL 4.6 on Metal
Apache License 2.0
781 stars 30 forks source link

Memory leak #48

Closed r58Playz closed 2 years ago

r58Playz commented 2 years ago

When opening the test program, there seems to be a memory leak.

Screen Shot 2022-08-01 at 9 45 45 AM

Could be caused by my viewport PR, testing.

EDIT: There still seems to be a leak.

Screen Shot 2022-08-01 at 9 48 41 AM Screen Shot 2022-08-01 at 9 48 53 AM
r58Playz commented 2 years ago

Seems to occur when the test program gets hidden by other windows.

darkaegisagain commented 2 years ago

Yes I noticed that also, but I never fixed it... it has to do with surface allocation in Metal...

r58Playz commented 2 years ago

I think I fixed the major leak, but there are multiple other leaks according to the Leaks instrument. They're related to createGLMContext and glslang

Screen Shot 2022-08-02 at 7 27 11 AM
darkaegisagain commented 2 years ago

Good job.. I tried leaks but it was crashing (which I found out later was due to some advanced memory tracking settings for debugging).

Thanks