Skip to content

Latest commit

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Unity-Performance-Utils

Collection of utility classes for use in Unity with Burst

ConstantIntIndexList

A fast freelist with constant indexes while removing and/or adding items. Can be based on function stack and grows into the heap if necessary using the provided allocator.

constintstack_size=1024;int*stack=stackallocint[stack_size];// init list with initial capacity of 1024 integers, tuple size = 3 integers ConstantIndexIntListlist=ConstantIndexIntList.Create(3,Allocator.Temp,stack,stack_size);// use the list// destroy the list, freeing any possible allocation list.Destroy();

Threadsafe Bit Set

Set a bit in a map from multiple threads ensuring threadsafety using interlocked ops.

Implementation of a quadtree

Partition regions on the xz plane efficiently, uses integers only. Data in native memory and search/find burstable.

About

Collection of utility classes for use in Unity with Burst

Resources

Stars

9 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages