mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 17:35:30 +00:00
Eagerly destroy CommandBuffer commands after submission
Command buffers hold references to all encoded objects. Freeing them eagerly significantly reduces the amount memory held before the JS GC clears the command buffers. Bug: dawn:262, dawn:372 Change-Id: I68dfa973f980fba8d94611ed1de3c593bdb91a63 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/26562 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Rafael Cintron <rafael.cintron@microsoft.com> Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
f7905c3cb5
commit
76d9e34bbc
@@ -188,7 +188,8 @@ namespace dawn_native {
|
||||
}
|
||||
}
|
||||
}
|
||||
commands->DataWasDestroyed();
|
||||
|
||||
commands->MakeEmptyAsDataWasDestroyed();
|
||||
}
|
||||
|
||||
void SkipCommand(CommandIterator* commands, Command type) {
|
||||
|
||||
Reference in New Issue
Block a user