Bug Issue: HTML5 Memory Leak


Pages: 1

irock

  • Master Stencyler
  • *
April 10, 2020, 03:31:11 pm
Multiple users are reporting memory leaks in their HTML5 games.



domagojbulat

  • Level 3 Stencyler
April 12, 2020, 11:39:21 am
This is one of the things that triggers HTML trouble in my case - quickly firing an event. I have a simple test actor that follows the mouse pointer and it causes memory going slowly upwards, tested in Firefox and Chrome. It doesn't matter if it just jumps to pointer or slides over there.. hope this helps fixing the bug. Thanks for your support! (pic on bottom is a GIF, click on it if it doesn't auto play...)
.Stencyl file https://www.dropbox.com/s/vkuu960rab4iqt1/HTML5MemoryTrouble.stencyl?dl=0

« Last Edit: April 12, 2020, 11:40:32 am by domagojbulat »


rob1221

  • Master Stencyler
  • *
April 12, 2020, 12:49:23 pm
Any change of the screen causes WebGL to use some memory, and if changes are happening many times a second, then that memory can stack up over time.  If you add -D canvas to Settings > Advanced > Haxe Flags then you can see how much lower the memory is compared to the default WebGL.


yoplalala

  • Subscriber - Stencyl Studio
  • *
May 19, 2020, 05:11:26 am
There is quite some big memory leak

example :
I  drawed a rectangle the size of the screen
it actually freezes my computer

With canvas it seems to work perfectly. Is there an advantage of using the default webgl over canvas ?
« Last Edit: May 19, 2020, 05:13:22 am by yoplalala »


rob1221

  • Master Stencyler
  • *
May 19, 2020, 06:08:05 am
Canvas doesn't support shaders, and it may have less fps in games with a lot of objects on screen.


yoplalala

  • Subscriber - Stencyl Studio
  • *
May 19, 2020, 01:31:35 pm
Ok thanks :)


Justin

  • Master Stencyler
  • *
August 01, 2020, 11:36:46 pm
Marking as duplicate of #1429: HTML5 Memory Leak When Drawing.
  • Tags added: html5
  • Status changed from New to Duplicate


Pages: 1

Details

  • Reported
    April 10, 2020, 03:31:11 pm
  • Updated
    August 01, 2020, 11:36:46 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Duplicate
  • Priority
    Normal
  • Version
    (none)
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Engine

Tags