I am trying to reduce my buffer size. But in game i always get same buffer size:(
Calculate buffer memory.
uint8_t* bytes = 0x0;
dmBuffer::GetBytes(buffer, (void**)&bytes, &goChunk.bufferMemory);
const dmBuffer::StreamDeclaration chunk_buffer_decl[] = {
{HASH_TEXCOORD0, dmBuffer::VALUE_TYPE_FLOAT32, 2},
{HASH_CHUNK_DATA_POS_X, dmBuffer::VALUE_TYPE_FLOAT32, 1},
{HASH_CHUNK_DATA_POS_Y, dmBuffer::VALUE_TYPE_FLOAT32, 1},
{HASH_CHUNK_DATA_POS_Z, dmBuffer::VALUE_TYPE_FLOAT32, 1},
{HASH_CHUNK_DATA_NORMAL_X, dmBuffer::VALUE_TYPE_FLOAT32, 1},
{HASH_CHUNK_DATA_NORMAL_Y, dmBuffer::VALUE_TYPE_FLOAT32, 1},
{HASH_CHUNK_DATA_NORMAL_Z, dmBuffer::VALUE_TYPE_FLOAT32, 1}
};
const dmBuffer::StreamDeclaration chunk_buffer_decl[] = {
{HASH_TEXCOORD0, dmBuffer::VALUE_TYPE_FLOAT32, 2},
{HASH_CHUNK_DATA_POS_X, dmBuffer::VALUE_TYPE_UINT8, 1},
{HASH_CHUNK_DATA_POS_Y, dmBuffer::VALUE_TYPE_UINT16, 1},
{HASH_CHUNK_DATA_POS_Z, dmBuffer::VALUE_TYPE_UINT8, 1},
{HASH_CHUNK_DATA_NORMAL_X, dmBuffer::VALUE_TYPE_INT8, 1},
{HASH_CHUNK_DATA_NORMAL_Y, dmBuffer::VALUE_TYPE_INT8, 1},
{HASH_CHUNK_DATA_NORMAL_Z, dmBuffer::VALUE_TYPE_INT8, 1}
};