minor issues (don't use \n in B3_PROFILE, and don't report timing inaccuracy in console

This commit is contained in:
erwincoumans
2014-01-29 15:25:36 -08:00
parent 3e8b183587
commit 31998c8e7d
2 changed files with 2 additions and 2 deletions

View File

@@ -1109,7 +1109,7 @@ void b3GpuSapBroadphase::calculateOverlappingPairs(int maxPairs)
if (m_gpuSmallSortData.size())
{
B3_PROFILE("gpu radix sort\n");
B3_PROFILE("gpu radix sort");
m_sorter->execute(m_gpuSmallSortData);
clFinish(m_queue);
}

View File

@@ -535,7 +535,7 @@ void CProfileManager::dumpRecursive(CProfileIterator* profileIterator, int spaci
if (parent_time < accumulated_time)
{
printf("what's wrong\n");
//printf("what's wrong\n");
}
for (i=0;i<spacing;i++) printf(".");
printf("%s (%.3f %%) :: %.3f ms\n", "Unaccounted:",parent_time > SIMD_EPSILON ? ((parent_time - accumulated_time) / parent_time) * 100 : 0.f, parent_time - accumulated_time);