We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23e5d6b commit c0956abCopy full SHA for c0956ab
devices/rtx/frame/Frame.cu
@@ -62,8 +62,8 @@ Frame::~Frame()
62
63
bool Frame::isValid() const
64
{
65
- return m_renderer && m_renderer->isValid() && m_camera
66
- && m_camera->isValid() && m_world && m_world->isValid();
+ return m_renderer && m_renderer->isValid() && m_camera && m_camera->isValid()
+ && m_world && m_world->isValid();
67
}
68
69
DeviceGlobalState *Frame::deviceState() const
@@ -204,6 +204,7 @@ void Frame::renderFrame()
204
instrument::rangePop(); // flush array uploads
205
206
instrument::rangePush("rebuild BVHs");
207
+ auto worldLock = m_world->scopeLockObject();
208
m_world->rebuildWorld();
209
instrument::rangePop(); // rebuild BVHs
210
instrument::rangePop(); // update scene
0 commit comments