MadmandenSH

Hey!

I am writing here in the hope that someone might know some things about memory management.

Essentially I'd like to know exactly how to make sure that a Spine instance is disposed of properly. Currently I am calling dispose() on the skeleton mesh. when loading and unloading Spine objects my memory consumption increases steadily over time until I eventually encounter a crash.

Is there anything I am missing about how to handle disposal?

Any help would greatly be appreciated.

- Kenneth
MadmandenSH
  • Bài viết: 4

Mario

What rendering backend are you using? ThreeJS? WebGL?
Hình đại diện của thành viên
Mario

Mario
  • Bài viết: 2297

MadmandenSH

Hey Mario

Sorry for the delayed answer. We are using ThreeJS with WebGL 1.0
MadmandenSH
  • Bài viết: 4

Mario

Hm, it's hard to tell for ThreeJS I'm afraid. Calling dispose() should do the trick, however the underlying system resources might be purged later. Do you have an example I could inspect in the dev console?
Hình đại diện của thành viên
Mario

Mario
  • Bài viết: 2297


Quay về Runtimes