When a conditional statement is true in the draw event there is a memory leak. This only happens on html5. The memory rapidly climbs by 100MB a second until it crashes or the conditional statement is false.
If it's not too much trouble, please export and attach a sample .stencyl to be sure that we get the same setup. It often really helps speed things along on this end. Thanks!
« Last Edit: November 30, 2018, 05:03:09 pm by Justin »
I'll try to upload it when able! As an update I noticed the problem seemed to be stemming from drawing text over top the same area that an image is attached to the screen. However I later noticed it happening again in a later instance in a different scenario, so it's very strange.
Either way I will try to get you the files when I am back at my computer!
Yeah all browsers I've tried have the problem. I'm only running one instance of the game as well!
I stripped down the game so that only the components causing the problem are left. As soon as the game is launched in html5 memory usage will start to climb, it may dip down once, but then it steadily climbs until crashing.
I've attached the .stencyl!
« Last Edit: December 01, 2018, 08:55:36 am by kantieno »
New attachment added by kantieno - December 01, 2018, 08:57:20 am
Testing in Firefox I see the memory go up over time when drawing anything, with or without conditionals. The memory does eventually get released and the process starts again.