Class GuiAssetManager

java.lang.Object
com.render.api.gui.GuiAssetManager

public final class GuiAssetManager extends Object
Bounded client-side cache for decoded GUI image and SVG textures.
  • Method Details

    • bootstrap

      public static void bootstrap()
    • clear

      public static void clear()
      Releases every cached dynamic texture. Assets load again on next use. Also discards gradient/mesh/worklet preparation caches, CPU image/path mask coverage and pooled-target upload identities so the next mask execution observes fresh publications.
    • stats

      public static GuiAssetStats stats()
      Reports shared decoded texture pixels and conservative in-flight decode/upload reservations.
    • pendingFirstPublications

      public static int pendingFirstPublications()
      Counts cached assets awaiting their first usable texture through an admitted or deferred load.

      Already published assets are excluded even while retained SVG animation requests another generation. Failed loads are excluded until a retry starts. This is a read-only snapshot; it does not request, decode, or upload assets.

      Returns:
      pending first texture publications
    • failedFirstPublications

      public static int failedFirstPublications()
      Counts cached assets whose first load failed and has not begun a retry.

      Capacity backpressure is pending work rather than a failure. Assets with an existing usable texture are excluded. A failed entry remains counted until retry admission, cache eviction, or clear().

      Returns:
      failed first texture publications