<p></p>
<p>It seems that it's probably leaking memory every time Custom is run. Around 10GB an hour.</p>
<p>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 <code>@rpath</code> change I made to try to fix <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="602376978" data-permission-text="Title is private" data-url="https://github.com/ohrrpgce/ohrrpgce/issues/1113" data-hovercard-type="issue" data-hovercard-url="/ohrrpgce/ohrrpgce/issues/1113/hovercard" href="https://github.com/ohrrpgce/ohrrpgce/issues/1113">#1113</a> 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.</p>
<blockquote>
<p>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.</p>
</blockquote>
<p>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.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/ohrrpgce/ohrrpgce/issues/1147#issuecomment-682279960">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AMWGWZRM6EIH37XQGCPFOLTSC4EWLANCNFSM4P77SJIQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AMWGWZWEQDZ7JNY6TPEBUQLSC4EWLA5CNFSM4P77SJI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFCVMIGA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/ohrrpgce/ohrrpgce/issues/1147#issuecomment-682279960",
"url": "https://github.com/ohrrpgce/ohrrpgce/issues/1147#issuecomment-682279960",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>