示例#1
0
    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");
    }
示例#2
0
    public void Execute(int index)
    {
        float3 data = DataArray[index];

        DataArray[index] = JobTestingTool.Process(data, Random) * Time;
    }