webgpu-samples icon indicating copy to clipboard operation
webgpu-samples copied to clipboard

Weird behavior for "animometer" with render bundles

Open Synxis opened this issue 3 years ago • 1 comments

This match a behavior I encountered on my own tests : when running the animometer sample, with render bundles and a numTriangles at 200,000, the render frequently glitches. This seems to be some kind of data-race, as the slower the frames, the less this effect appears (this notably makes it very difficult to record).

Anyway, I attached a video taken with my phone to show it, here is the environment:

  • NVIDIA Quadro T1000
  • Windows 10 (20H2, build 19042.1348)
  • Chrome 99.0.4777.0 canary (64 bits)

I don't know whether this is a bug in the sample, in chrome, in my gpu or in another part of my computer, I'll continue to search.

https://user-images.githubusercontent.com/9371972/146789316-33d4b910-5114-40aa-8cce-516c6fe4fcd6.mp4

Synxis avatar Dec 20 '21 15:12 Synxis

This looks like a frames-out-of-order bug (e.g. sometimes the compositor is showing an old frame instead of the current one). Maybe somehow related to backpressure, like if the system gets behind on frames, it triggers an issue where we don't recycle frames properly.

kainino0x avatar Dec 30 '21 22:12 kainino0x