PR feedback

This commit is contained in:
Brad Davis 2016-07-07 09:56:26 -07:00
parent eff1c65388
commit b73fe24848
2 changed files with 8 additions and 8 deletions

View file

@ -30,12 +30,12 @@ ProfileRangeBatch::~ProfileRangeBatch() {
using namespace gpu; using namespace gpu;
size_t Batch::_commandsMax { 128 }; size_t Batch::_commandsMax { BATCH_PREALLOCATE_MIN };
size_t Batch::_commandOffsetsMax { 128 }; size_t Batch::_commandOffsetsMax { BATCH_PREALLOCATE_MIN };
size_t Batch::_paramsMax { 128 }; size_t Batch::_paramsMax { BATCH_PREALLOCATE_MIN };
size_t Batch::_dataMax { 128 }; size_t Batch::_dataMax { BATCH_PREALLOCATE_MIN };
size_t Batch::_objectsMax { 128 }; size_t Batch::_objectsMax { BATCH_PREALLOCATE_MIN };
size_t Batch::_drawCallInfosMax { 128 }; size_t Batch::_drawCallInfosMax { BATCH_PREALLOCATE_MIN };
Batch::Batch() { Batch::Batch() {
_commands.reserve(_commandsMax); _commands.reserve(_commandsMax);

View file

@ -26,7 +26,7 @@
#include "Transform.h" #include "Transform.h"
class QDebug; class QDebug;
#define BATCH_PREALLOCATE_MIN 128
namespace gpu { namespace gpu {
enum ReservedSlot { enum ReservedSlot {
@ -481,7 +481,7 @@ protected:
}; };
template <typename T> template <typename T>
size_t Batch::Cache<T>::_max = 128; size_t Batch::Cache<T>::_max = BATCH_PREALLOCATE_MIN;
} }