more time

This commit is contained in:
Seth Alves 2016-11-18 15:36:29 -08:00
parent 47062d29f5
commit b2a28147c0
2 changed files with 6 additions and 6 deletions

View file

@ -551,15 +551,13 @@ void RenderablePolyVoxEntityItem::setZTextureURL(QString zTextureURL) {
}
}
quint64 start { 0 };
void RenderablePolyVoxEntityItem::render(RenderArgs* args) {
PerformanceTimer perfTimer("RenderablePolyVoxEntityItem::render");
assert(getType() == EntityTypes::PolyVox);
Q_ASSERT(args->_batch);
if (start == 0) {
start = usecTimestampNow();
if (_start == 0) {
_start = usecTimestampNow();
return;
}
@ -622,7 +620,7 @@ void RenderablePolyVoxEntityItem::render(RenderArgs* args) {
batch.setInputFormat(_vertexFormat);
// ok
if (usecTimestampNow() - start < 200000) {
if (usecTimestampNow() - _start < 600000) {
return;
}
@ -632,7 +630,7 @@ void RenderablePolyVoxEntityItem::render(RenderArgs* args) {
// crash
// if (usecTimestampNow() - start < 200000) {
// if (usecTimestampNow() - _start < 600000) {
// return;
// }

View file

@ -188,6 +188,8 @@ private:
void cacheNeighbors();
void copyUpperEdgesFromNeighbors();
void bonkNeighbors();
quint64 _start { 0 };
};
bool inUserBounds(const PolyVox::SimpleVolume<uint8_t>* vol, PolyVoxEntityItem::PolyVoxSurfaceStyle surfaceStyle,