[Ohrrpgce] [ohrrpgce/ohrrpgce] Mac: run-away memory leak (#1147)

Ralph Versteegen notifications at github.com
Thu Aug 27 18:52:37 PDT 2020


It seems that it's probably leaking memory every time Custom is run. Around 10GB an hour.

On a closer examination of the sampling report I noticed that it was actually using /Library/Frameworks/SDL.framework and /Library/Frameworks/SDL_mixer.framework instead of the copies embedded in the .app, explaining the obsolete versions SDL 1.2.14 and SDL_mixer 1.2.11. The `@rpath` change I made to try to fix #1113 had the side effect of fixing this, now it uses our frameworks.  However the current mac nightlies are broken, so have to get kylekrack to test again tomorrow.

> Looks like the CPU usage is over 50% just drawing the screen. Mac OS seems to be spending a lot of time copying pixels and converting color formats and all kinds of stuff.

The majority of CPU time is spent converting from the window color space to the screen color space. Using OpenGL (and I assume Metal too) bypasses this color space conversion, so I assume that gfx_sdl2 would use much less CPU than gfx_sdl on Mac.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/1147#issuecomment-682279960
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20200827/d11afa47/attachment.html>


More information about the Ohrrpgce mailing list