From 6b183f5e90ee3cb5d30fc21e1a62cb2e395e9d3b Mon Sep 17 00:00:00 2001 From: John Owens Date: Wed, 23 Oct 2024 15:56:21 -0700 Subject: [PATCH] added (commented-out) suggestion from kbr@, did not have an effect when I tested it --- timing-mre.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/timing-mre.html b/timing-mre.html index 825cdb1..b23846f 100644 --- a/timing-mre.html +++ b/timing-mre.html @@ -263,6 +263,8 @@ // Finish encoding and submit the commands const command_buffer = encoder.finish(); device.queue.submit([command_buffer]); + // kbr@ suggested the following line, which had no effect on M3 [23 Oct 2024] + // await device.queue.onSubmittedWorkDone(); // Read the results await mappableMemdstBuffer.mapAsync(GPUMapMode.READ);