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

Release GPU resources from device.trackers, not from lifetime_tracker. #5075

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

bradwerth
Copy link
Contributor

@bradwerth bradwerth commented Jan 16, 2024

Connections
#4907

Description
This makes wgpu release all device-tracked GPU buffers and textures during "lose the device". Previously, wgpu only released buffers that had pending status changes in life_tracker.

Testing
Tested by bulk test runners like CTS, which should run out of memory less frequently.

Checklist

  • Run cargo fmt.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@bradwerth bradwerth requested a review from a team as a code owner January 16, 2024 23:36
CHANGELOG.md Outdated Show resolved Hide resolved
@nical nical merged commit ac8756c into gfx-rs:trunk Jan 22, 2024
25 checks passed
@bradwerth bradwerth deleted the releaseMoreGPUResources branch January 22, 2024 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants