private void RunSimple() { float startTime = Time.realtimeSinceStartup; float random = Random.Range(0, 100); float time = Time.deltaTime; for (int i = 0; i < dataToProcesses.Count; i++) { DataToProcess data = dataToProcesses[i]; data.Position = JobTestingTool.Process(data.Position, random) * time; } Debug.Log("Simple: " + (Time.realtimeSinceStartup - startTime) * 1000f + " ms"); }
public void Execute(int index) { float3 data = DataArray[index]; DataArray[index] = JobTestingTool.Process(data, Random) * Time; }