Interface CollisionTreeController

All Known Implementing Classes:
UsageTreeController

public interface CollisionTreeController
CollisionTreeController defines an interface for determining which collision tree to remove from a supplied cache. The desired size is given for the controller to attempt to reduce the cache to, as well as a list of protected elements that should not be removed from the cache.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    clean(Map<Mesh,CollisionTree> cache, List<Mesh> protectedList, int desiredSize)
    clean will reduce the size of cache to the provided desiredSize.
  • Method Details

    • clean

      void clean(Map<Mesh,CollisionTree> cache, List<Mesh> protectedList, int desiredSize)
      clean will reduce the size of cache to the provided desiredSize. The protectedList defines elements that should not be removed from the cache.
      Parameters:
      cache - the cache to reduce.
      protectedList - the list of elements to not remove.
      desiredSize - the desiredSize of the final cache.