illegalinstruction / spe321_mhis

This was an interactive piece about mental health, made for Oregon Tech's SPE 321 course. Leaving it here as a monument to us having beaten Twine into submission.
1 stars 0 forks source link

Check whether texture IDs persist after a webgl rendering context is lost. #9

Closed illegalinstruction closed 2 years ago

illegalinstruction commented 2 years ago

It may indicate a place where we could accidentally leak video memory.

I think the browser cleans it up no matter what if the tab is closed, but I'm not sure. I can look a little more closely with nvidia-smi after class ends for the day.

If we get an onunload() event (see #8), we can probably just call glDeleteTextures()/glDeleteProgram() in there...

illegalinstruction commented 2 years ago

No longer needed - switched to a 2D context, obviating this ticket.