-
Notifications
You must be signed in to change notification settings - Fork 27
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
Negative profile measurements on MacOS #64
Comments
Yes, this is sort of a known issue, see linebender/vello#475 (comment) I figure though wgpu_profiler could do some mitigation here:
The render/compute pass centric API should not have this issue btw.! |
thanks, I will give that a read. what do you mean by the render/compute pass centric API? |
scoped_render_pass and scoped_compute_pass |
Ah I see.. I'm afraid my application is (only) using scoped_render_pass already though |
uhoh! Then wgpu is likely more buggy than I thought this is, will have to look into this |
Interested in that mini-repo now. Might be a good starting point. Xcode frame debugger should be able to point out where the time stamp queries go and how that's wrong |
I'll see if I can whip something up tonight |
I was actually able to reproduce this with the wgpu profiler demo. Just ran here's what I got. The times where the 'rendering' scope went into the negative was when I opened up the app switcher.
|
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 if you'd like :).The text was updated successfully, but these errors were encountered: