Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Repeated calls of image:copy() cause memory leak

in Bugs Posts: 26

I tested the other image functions and they don't have any problems. However image:copy() in the draw function produces a sudden crash; Especially with very large pictures. This is the same problem from:


  • I did call garbagecollect() which fixed the crashing.

  • Posts: 237

    @PlatinumFrog it causes a crash because you are creating a new image 60 times a second, and big images require more space and data, which would cause major lagging prior to crashing

  • Posts: 2,020

    You almost certainly don't want to be calling image:copy 60 times a second

Sign In or Register to comment.