rive-app / rive-cpp

C++ runtime for Rive
MIT License
278 stars 42 forks source link

Manually track render-objects allocations #331

Closed mikerreed closed 2 years ago

mikerreed commented 2 years ago

Goal: know how many Render objects are in-flight at any given time.

  1. Add constructors/destructors to our base classes for Render objects
  2. Define a simple Counter struct to keep track of allocation-counts
  3. Add simple calls to that in Viewer to dump it out
  4. Add real checks to some of our tests
mikerreed commented 2 years ago

... not ready to land -- but seems like an interesting direction