Commit 241ddf7d authored by Johannes Maul's avatar Johannes Maul
Browse files

Update of querypool desctruction into clean up

parent 53a49fdd
......@@ -238,6 +238,7 @@ public:
void cleanUp()
{
vkDestroyQueryPool(device, queryPool, VK_NULL_HANDLE);
vkDestroyPipeline(device,
pipeline,
nullptr);
......@@ -275,7 +276,7 @@ public:
faces4thFieldBuffer_buffer.destroy();
primitives_buffer.destroy();
distances_buffer.destroy();
attenuationValues_buffer.destroy();
attenuationValues_buffer.destroy();
#ifdef debug
debug_buffer.destroy();
debug_bufferMiss.destroy();
......@@ -1143,8 +1144,7 @@ public:
if (result == VK_SUCCESS)
tmpTimestampTime = static_cast<double>(timingRes[1] - timingRes[0]) / (1000 * 1000); //convert nano to milli (nano -> mikro -> milli)
vkResetQueryPool(device, queryPool, 0, 2);
vkDestroyQueryPool(device, queryPool, VK_NULL_HANDLE);
vkResetQueryPool(device, queryPool, 0, 2);
//timeStamp end
times.push_back(tmpTimestampTime); //7
......@@ -1474,13 +1474,13 @@ public:
if (!prepared)
return;
#ifdef profile
sw.Start(); //8 (-107)
sw.Start(); //8 (-207)
#endif
draw();
draw();
#ifdef profile
sw.Stop();
times.push_back(sw.ElapsedMilliseconds());
#endif
sw.Stop();
times.push_back(sw.ElapsedMilliseconds());
#endif
#ifdef profile
sw.Start(); //9
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment