Mirror of Svelto.ECS because we're a fan of it
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
-
- namespace Svelto.ECS
- {
- public static class ProcessorCount
- {
- public static readonly int processorCount = Environment.ProcessorCount;
-
- public static int BatchSize(uint totalIterations)
- {
- var iterationsPerBatch = totalIterations / processorCount;
-
- if (iterationsPerBatch < 64)
- return 64;
-
- return (int) iterationsPerBatch;
- }
- }
- }
|