Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8092277

Render the scene using retained data structures

    XMLWordPrintable

Details

    Description

      Currently the scene is rendered in Prism using an immediate mode API where the nodes draw their pieces one at a time using individual calls on a Graphics object to set attributes and then render a single piece.

      When talking to an accelerated GPU, each of those individual render calls ends up setting various parameters in the GPU context and then constructing a list of vertices for it to operate on.

      In an ideal 3D application, the vertex lists are accumulated with common attributes (with the exception of a few attributes that can vary per vertex - primarily a color) and then sent to the GPU in batches. Between frames of presenting the 3D model, only the vertices that are associated with moving parts of the model are changed and as many of the lists of vertices as possible are reused, possibly cache on the GPU itself. This reduces not only the computation of the vertex lists for each primitive, but also can save transmission time over the system buses.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              flar Jim Graham
              Votes:
              3 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Imported:

                Time Tracking

                  Estimated:
                  Original Estimate - 30 weeks
                  30w
                  Remaining:
                  Remaining Estimate - 30 weeks
                  30w
                  Logged:
                  Time Spent - Not Specified
                  Not Specified