wgpu-profiler
wgpu-profiler copied to clipboard
Simple profiler scopes for wgpu using timer queries
I am seeing that sometimes `query_result.time.end - query_result.time.start` gives me a negative value on mac. Have you seen this before? I could create a mini repo that reproduces the problem...
It should be possible to have both CPU & GPU traces be shown in sync in Puffin 🤔 (Add an example screenshot of that to readme if it works out!)
Users have to do that manually right now if they don't use chrome trace. Also the readme could really use some of that, people coming in have no ideas what...
See also https://github.com/Wumpf/wgpu-profiler/discussions/49 Making the profiler generic over two payload types doesn't seem to outrageous (with both defaulting to `()`). Need to figure out how to keep things ergonomic though...
Profiling the profiler! Give out an info struct with amount of buffers and queries used etc.
https://docs.rs/wgpu/latest/wgpu/struct.DownlevelFlags.html#associatedconstant.NONBLOCKING_QUERY_RESOLVE As of writing it's only on Desktop GL < 4.2 Not exactly sure what we need to do here exactly, but at the very least it should be tried...
Here's a first pass at a way to display the `GpuTimerQueryResult` in puffin. This only depends on the base `puffin` crate, not `puffin_egui` or `puffin_http`. I added `puffin_http` as a...
I had a use-case where I wanted to be generic over the different scopes for helper functions and solved it by introducing extension traits in addition to the direct macro...