-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an API to reserve a scene #667
Comments
I think this would be a useful API to have, although I don't think it's a high priority. In most cases, you will be rendering more than one frame, and so retaining the giant scene between frames is probably better anyway. Maybe my intuition about the total memory usage of a scene is off, but I expect it to be relatively small? |
I disagree it's a better idea. Forgetting to reset scenes between frames is already a common footgun. The advantage of a |
Vello should provide a
SceneMetrics
type, which could be returned from a Scene; multiple SceneMetrics could be added together.Scene should have a new
Scene::reserve(metrics)
constructor taking a SceneMetrics value.This could be useful for consumers who want to stitch a large amount of pre-existing scenes together in one pass. The consumer would scan over the scene metrics, reserve one giant scene, and then run a second pass to add the sub-scenes to it.
The text was updated successfully, but these errors were encountered: