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

Option to track texture memory allocation

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 8
    • javafx

      Provide a system property that can be set at start-up to log texture allocation and disposal.
      Logs should show the number of live textures, the total number allocated, the number of pixels currently allocated in textures and the pixel size of the current allocation. For example:

      prism.trackTextures: Allocated texture #5123 of size 600x600 (currently allocated 8.2M pixels in 40 textures)
      prism.trackTextures: Freed texture of size 600x600 (currently allocated 7.9M pixels in 39 textures)

      This will help us to diagnose memory problems in applications.
      Keeping track of the total number will help us see when we are constantly allocating and freeing textures and need to consider caching.

            flar Jim Graham
            dblaukop Daniel Blaukopf (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: