You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a set of GPUCommandBuffer units and want to measure performance of each of them.
My current solution is to use something like this: const start = performance.now(); GPUQueue.submit([this_GPUCommandBuffer]); await smallest_GPUBuffer.mapAsync(GPUMapMode.READ); const end = performance.now();
Obviously for performance it is better to avoid extra buffer mapping, but in that case idk how to measure execution time of any given command buffer.
Is there any better way to measure execution times of my units?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a set of
GPUCommandBuffer
units and want to measure performance of each of them.My current solution is to use something like this:
const start = performance.now();
GPUQueue.submit([this_GPUCommandBuffer]);
await smallest_GPUBuffer.mapAsync(GPUMapMode.READ);
const end = performance.now();
Obviously for performance it is better to avoid extra buffer mapping, but in that case idk how to measure execution time of any given command buffer.
Is there any better way to measure execution times of my units?
Beta Was this translation helpful? Give feedback.
All reactions