nerfstudio-project / viser

Web-based 3D visualization + Python

Home Page:https://viser.studio/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

3D GUI lifecycle edge case

brentyi opened this issue · comments

Currently, if we:

  • Call add_3d_gui_container() to add a 3D GUI container at /gui.
  • Add some GUI elements to /gui. Buttons, sliders, etc.
  • Add another 3D GUI container at /gui, overwriting the original one.

The original GUI container and its contents will be erased, but callbacks, configs, etc for the GUI elements inside of it won't be cleaned out. This will slowly leak memory.