Template encapsulates logic of inserting, removing, identifying T's with priority ordering.
Priority ordering
Cached objects (in std::vector for contiguous access performance).
Identity tracked.
Can't use map as the iteration on the cpu side is simply too slow compared to a pre-cached vector (contig.) and building the vec on the fly is also sub-optimal. (60fps, <100k shapes with a map, >500k with pre-cached vec).
Template encapsulates logic of inserting, removing, identifying T's with priority ordering.
Can't use map as the iteration on the cpu side is simply too slow compared to a pre-cached vector (contig.) and building the vec on the fly is also sub-optimal. (60fps, <100k shapes with a map, >500k with pre-cached vec).