[Webkit-unassigned] [Bug 198683] New: Work around the performance cost of creating bind groups

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 7 15:05:44 PDT 2019


            Bug ID: 198683
           Summary: Work around the performance cost of creating bind
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebGPU
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mmaxfield at apple.com

We model bind groups as argument buffers, which turn out to be regular MTLBuffers in Metal. On some drivers, creating a MTLBuffer can take a huge amount of time (https://github.com/gpuweb/gpuweb/issues/116#issuecomment-449245367).

Instead, we should try to make one big buffer, and use segments of the same buffer for many bind groups (using the "offset" parameter of -[MTLArgumentEncoder setArgumentBuffer:offset] https://developer.apple.com/documentation/metal/mtlargumentencoder/2915777-setargumentbuffer?language=objc

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190607/032bc768/attachment-0001.html>

More information about the webkit-unassigned mailing list