Example #1
0
        public DrawStageBatcher(int initialBatchPoolSize, IDrawStageBatcherTools tools)
        {
            _tools = tools;

            _poolSize = initialBatchPoolSize;
            Pool      = _tools.CreatePoolOfSize(_poolSize, false);
        }
Example #2
0
 private void CheckIfPoolFullAndReSize()
 {
     if (NumberOfBatches == _poolSize)
     {
         _poolSize *= 2;
         Pool       = _tools.CreatePoolOfSize(_poolSize, true, Pool);
     }
 }