Closed crumblingstatue closed 1 year ago
Patch coverage has no change and project coverage change: -0.02
:warning:
Comparison is base (
5931823
) 17.81% compared to head (451bc38
) 17.79%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Thanks, good catch! I didn't know that macroquad
was not freeing the textures, will keep this in mind.
There's another PR I have planned to avoid memory exhaustion: the way we keep track of actions to be able undo is completely unoptimized (for example, if you resize the canvas I simply save the previous image in order to be able to recover it with CTRL+Z). I need to put a cap on the size of that data structure and start freeing some of the older action records. (That cap would be another configurable thing.)
Since macroquad doesn't automatically free textures, we need to do it ourselves, otherwise we risk serious memory leak. This causes eventual systemwide hang for me, as my video driver seems to be vulnerable to video memory leak, and eventually I run out of system memory as well.