mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 22:09:02 +02:00
more time
This commit is contained in:
parent
47062d29f5
commit
b2a28147c0
2 changed files with 6 additions and 6 deletions
|
@ -551,15 +551,13 @@ void RenderablePolyVoxEntityItem::setZTextureURL(QString zTextureURL) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
quint64 start { 0 };
|
|
||||||
|
|
||||||
void RenderablePolyVoxEntityItem::render(RenderArgs* args) {
|
void RenderablePolyVoxEntityItem::render(RenderArgs* args) {
|
||||||
PerformanceTimer perfTimer("RenderablePolyVoxEntityItem::render");
|
PerformanceTimer perfTimer("RenderablePolyVoxEntityItem::render");
|
||||||
assert(getType() == EntityTypes::PolyVox);
|
assert(getType() == EntityTypes::PolyVox);
|
||||||
Q_ASSERT(args->_batch);
|
Q_ASSERT(args->_batch);
|
||||||
|
|
||||||
if (start == 0) {
|
if (_start == 0) {
|
||||||
start = usecTimestampNow();
|
_start = usecTimestampNow();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -622,7 +620,7 @@ void RenderablePolyVoxEntityItem::render(RenderArgs* args) {
|
||||||
batch.setInputFormat(_vertexFormat);
|
batch.setInputFormat(_vertexFormat);
|
||||||
|
|
||||||
// ok
|
// ok
|
||||||
if (usecTimestampNow() - start < 200000) {
|
if (usecTimestampNow() - _start < 600000) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -632,7 +630,7 @@ void RenderablePolyVoxEntityItem::render(RenderArgs* args) {
|
||||||
|
|
||||||
|
|
||||||
// crash
|
// crash
|
||||||
// if (usecTimestampNow() - start < 200000) {
|
// if (usecTimestampNow() - _start < 600000) {
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
|
|
@ -188,6 +188,8 @@ private:
|
||||||
void cacheNeighbors();
|
void cacheNeighbors();
|
||||||
void copyUpperEdgesFromNeighbors();
|
void copyUpperEdgesFromNeighbors();
|
||||||
void bonkNeighbors();
|
void bonkNeighbors();
|
||||||
|
|
||||||
|
quint64 _start { 0 };
|
||||||
};
|
};
|
||||||
|
|
||||||
bool inUserBounds(const PolyVox::SimpleVolume<uint8_t>* vol, PolyVoxEntityItem::PolyVoxSurfaceStyle surfaceStyle,
|
bool inUserBounds(const PolyVox::SimpleVolume<uint8_t>* vol, PolyVoxEntityItem::PolyVoxSurfaceStyle surfaceStyle,
|
||||||
|
|
Loading…
Reference in a new issue