mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 03:53:52 +02:00
PR feedback
This commit is contained in:
parent
eff1c65388
commit
b73fe24848
2 changed files with 8 additions and 8 deletions
|
@ -30,12 +30,12 @@ ProfileRangeBatch::~ProfileRangeBatch() {
|
|||
|
||||
using namespace gpu;
|
||||
|
||||
size_t Batch::_commandsMax { 128 };
|
||||
size_t Batch::_commandOffsetsMax { 128 };
|
||||
size_t Batch::_paramsMax { 128 };
|
||||
size_t Batch::_dataMax { 128 };
|
||||
size_t Batch::_objectsMax { 128 };
|
||||
size_t Batch::_drawCallInfosMax { 128 };
|
||||
size_t Batch::_commandsMax { BATCH_PREALLOCATE_MIN };
|
||||
size_t Batch::_commandOffsetsMax { BATCH_PREALLOCATE_MIN };
|
||||
size_t Batch::_paramsMax { BATCH_PREALLOCATE_MIN };
|
||||
size_t Batch::_dataMax { BATCH_PREALLOCATE_MIN };
|
||||
size_t Batch::_objectsMax { BATCH_PREALLOCATE_MIN };
|
||||
size_t Batch::_drawCallInfosMax { BATCH_PREALLOCATE_MIN };
|
||||
|
||||
Batch::Batch() {
|
||||
_commands.reserve(_commandsMax);
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#include "Transform.h"
|
||||
|
||||
class QDebug;
|
||||
|
||||
#define BATCH_PREALLOCATE_MIN 128
|
||||
namespace gpu {
|
||||
|
||||
enum ReservedSlot {
|
||||
|
@ -481,7 +481,7 @@ protected:
|
|||
};
|
||||
|
||||
template <typename T>
|
||||
size_t Batch::Cache<T>::_max = 128;
|
||||
size_t Batch::Cache<T>::_max = BATCH_PREALLOCATE_MIN;
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue