Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/vsg/app/Viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,17 +465,13 @@ void Viewer::setupThreading()

stopThreading();

// check how valid tasks and command graphs there are.
// check how many valid tasks there are.
uint32_t numValidTasks = 0;
size_t numCommandGraphs = 0;
size_t numEarlyTransferTasks = 0;
for (auto& task : recordAndSubmitTasks)
{
if (!task->commandGraphs.empty())
{
++numValidTasks;
numCommandGraphs += task->commandGraphs.size();
if (task->earlyTransferTask) ++numEarlyTransferTasks;
}
}

Expand Down
2 changes: 0 additions & 2 deletions src/vsg/io/DatabasePager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ void DatabasePager::updateSceneGraph(FrameStamp* frameStamp, CompileResult& cr)
}

auto& activeList = pagedLODContainer->activeList;
uint32_t switchedCount = 0;
for (uint32_t index = activeList.head; index != 0;)
{
auto& element = elements[index];
Expand All @@ -260,7 +259,6 @@ void DatabasePager::updateSceneGraph(FrameStamp* frameStamp, CompileResult& cr)
if (!element.plod->highResActive(frameCount))
{
// debug(" active to inactive ", index);
++switchedCount;
pagedLODContainer->inactive(element.plod.get());
}
}
Expand Down
10 changes: 0 additions & 10 deletions src/vsg/state/BufferInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,7 @@ bool vsg::createBufferAndTransferData(Context& context, const BufferInfoList& bu
auto deviceID = context.deviceID;

ref_ptr<BufferInfo> deviceBufferInfo;
size_t numBuffersAssigned = 0;
size_t numBuffersRequired = 0;
size_t numNoData = 0;
bool containsMultipleParents = false;
for (auto& bufferInfo : bufferInfoList)
{
Expand All @@ -175,14 +173,6 @@ bool vsg::createBufferAndTransferData(Context& context, const BufferInfoList& bu
{
++numBuffersRequired;
}
else
{
++numBuffersAssigned;
}
}
else
{
++numNoData;
}

if (bufferInfo->parent)
Expand Down