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: ...@@ -238,6 +238,7 @@ public:
void cleanUp() void cleanUp()
{ {
vkDestroyQueryPool(device, queryPool, VK_NULL_HANDLE);
vkDestroyPipeline(device, vkDestroyPipeline(device,
pipeline, pipeline,
nullptr); nullptr);
...@@ -275,7 +276,7 @@ public: ...@@ -275,7 +276,7 @@ public:
faces4thFieldBuffer_buffer.destroy(); faces4thFieldBuffer_buffer.destroy();
primitives_buffer.destroy(); primitives_buffer.destroy();
distances_buffer.destroy(); distances_buffer.destroy();
attenuationValues_buffer.destroy(); attenuationValues_buffer.destroy();
#ifdef debug #ifdef debug
debug_buffer.destroy(); debug_buffer.destroy();
debug_bufferMiss.destroy(); debug_bufferMiss.destroy();
...@@ -1143,8 +1144,7 @@ public: ...@@ -1143,8 +1144,7 @@ public:
if (result == VK_SUCCESS) if (result == VK_SUCCESS)
tmpTimestampTime = static_cast<double>(timingRes[1] - timingRes[0]) / (1000 * 1000); //convert nano to milli (nano -> mikro -> milli) tmpTimestampTime = static_cast<double>(timingRes[1] - timingRes[0]) / (1000 * 1000); //convert nano to milli (nano -> mikro -> milli)
vkResetQueryPool(device, queryPool, 0, 2); vkResetQueryPool(device, queryPool, 0, 2);
vkDestroyQueryPool(device, queryPool, VK_NULL_HANDLE);
//timeStamp end //timeStamp end
times.push_back(tmpTimestampTime); //7 times.push_back(tmpTimestampTime); //7
...@@ -1474,13 +1474,13 @@ public: ...@@ -1474,13 +1474,13 @@ public:
if (!prepared) if (!prepared)
return; return;
#ifdef profile #ifdef profile
sw.Start(); //8 (-107) sw.Start(); //8 (-207)
#endif #endif
draw(); draw();
#ifdef profile #ifdef profile
sw.Stop(); sw.Stop();
times.push_back(sw.ElapsedMilliseconds()); times.push_back(sw.ElapsedMilliseconds());
#endif #endif
#ifdef profile #ifdef profile
sw.Start(); //9 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