Author Topic: Could I release the mesh after uploading it as VBO?  (Read 1599 times)

Offline kiffa

  • long
  • ***
  • Posts: 199
    • View Profile
Could I release the mesh after uploading it as VBO?
« on: October 10, 2013, 10:58:41 am »
There are some static BackGround Object3Ds in my game which are only used for rendering,  so I think their meshes could be released after uploading.

And my purpose is to free some main memory. I tried Object3D.decoupleMesh(), but got an incorrect result.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Could I release the mesh after uploading it as VBO?
« Reply #1 on: October 10, 2013, 11:32:03 am »
No, you can't. You can serialize some mesh data to the sdcard using the Virtualizer, but you can't get rid of the mesh instance itself.