Work in progress on refactoring resource allocation for meshes