Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8309700 Low graphic rendering performance in metal pipeline
  3. JDK-8311773

Cache Fragment functions uniform variable name and id in MTShader.java

XMLWordPrintable

    • generic
    • os_x

      We use MTLArgumentEncoder to pass uniform variables to Fragment functions.
      Each time when we set a uniform variable using its name, we map that variable to it's id.
      Each of the method needs converting java string to objective c string: This seems to be consuming more memory which can be avoided.
      This can be avoided by caching the name to id map on Java side in MTLShader.java

            arapte Ambarish Rapte
            arapte Ambarish Rapte
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: