Skip to content

Use a StagingBelt in iced_wgpu for regular buffer uploads#2357

Merged
hecrj merged 7 commits into
masterfrom
wgpu/use-staging-belt
Mar 30, 2024
Merged

Use a StagingBelt in iced_wgpu for regular buffer uploads#2357
hecrj merged 7 commits into
masterfrom
wgpu/use-staging-belt

Conversation

@hecrj

@hecrj hecrj commented Mar 29, 2024

Copy link
Copy Markdown
Member

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 hecrj force-pushed the wgpu/use-staging-belt branch from 851e94e to d11e271 Compare March 29, 2024 23:22
hecrj added a commit to iced-rs/cryoglyph 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 iced-rs/cryoglyph 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 iced-rs/cryoglyph 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
@hecrj hecrj deleted the wgpu/use-staging-belt branch March 30, 2024 22:49
grovesNL pushed a commit to iced-rs/cryoglyph 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