Skip to content
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

Use a StagingBelt in iced_wgpu for regular buffer uploads #2357

Merged
merged 7 commits into from
Mar 30, 2024

Conversation

hecrj
Copy link
Member

@hecrj hecrj commented Mar 29, 2024

Queue::write_buffer seems to be allocating new buffers often, at least on Metal.

Flamegraph of game_of_life before:

before

Flamegraph of game_of_life after:

flamegraph

hecrj added a commit to hecrj/glyphon that referenced this pull request Mar 30, 2024
`Queue::write_buffer` allocates very regularly, specially on Metal.

See: iced-rs/iced#2357

A `StagingBelt` gives us more control and predictability.
hecrj added a commit to hecrj/glyphon that referenced this pull request Mar 30, 2024
`Queue::write_buffer` allocates very regularly, specially on Metal.

See: iced-rs/iced#2357

A `StagingBelt` gives us more control and predictability.
hecrj added a commit to hecrj/glyphon that referenced this pull request Mar 30, 2024
`Queue::write_buffer` allocates very regularly, specially on Metal.

See: iced-rs/iced#2357

A `StagingBelt` gives us more control and predictability.
@hecrj hecrj merged commit c7a4fad into master Mar 30, 2024
24 checks passed
@hecrj hecrj deleted the wgpu/use-staging-belt branch March 30, 2024 22:49
grovesNL pushed a commit to hecrj/glyphon that referenced this pull request May 27, 2024
`Queue::write_buffer` allocates very regularly, specially on Metal.

See: iced-rs/iced#2357

A `StagingBelt` gives us more control and predictability.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant