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

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

              Created:
              Updated:
              Resolved: