i added to my project this code:
public static List<List<T>> GetAllCombos<T>(List<T> list)
{
int comboCount = (int)Math.Pow(2, list.Count) - 1;
List<List<T>> result = new List<List<T>>();
for (int i = 1; i < comboCount + 1; i++)
{
// make each combo here
result.Add(new List<T>());
for (int j = 0; j < list.Count; j++)
{
if ((i >> j) % 2 != 0)
result.Last().Add(list[j]);
}
}
return result;
}
before this i had a normal framerate but now in stats i have 0.1fps. Is it possible that this script made this?