mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +02:00
Try avoiding the basd update of the buffer for the grid content
This commit is contained in:
parent
1c2a672214
commit
3e11eb4129
1 changed files with 4 additions and 1 deletions
|
@ -444,7 +444,10 @@ void LightClusters::updateClusters() {
|
|||
|
||||
// update the buffers
|
||||
_clusterGridBuffer._buffer->setData(_clusterGridBuffer._size, (gpu::Byte*) _clusterGrid.data());
|
||||
_clusterContentBuffer._buffer->setSubData(0, indexOffset * sizeof(LightIndex), (gpu::Byte*) _clusterContent.data());
|
||||
//_clusterGridBuffer._buffer->setSubData(0, _clusterGridBuffer._size, (gpu::Byte*) _clusterGrid.data());
|
||||
_clusterContentBuffer._buffer->setData(indexOffset * sizeof(LightIndex), (gpu::Byte*) _clusterContent.data());
|
||||
|
||||
// _clusterContentBuffer._buffer->setSubData(0, indexOffset * sizeof(LightIndex), (gpu::Byte*) _clusterContent.data());
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue