- Timestamp:
- 01/12/07 22:41:01 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/GlobalLinesRenderer.cpp
r1971 r1972 456 456 const int layers = ApplyDepthPeeling(rays); 457 457 458 const float rays_per_sec = rays.size() / TimeDiff(startTime, GetTime()) * 1e-3; 459 cout << "cast " << rays.size() << " samples in " << layers << " layers in " << TimeDiff(startTime, GetTime()) * 1e-3 << " secs (" << rays_per_sec << " rays/sec)" << endl; 458 const float rays_per_sec = (float)rays.size() / (TimeDiff(startTime, GetTime()) * 1e-3f); 459 cout << "cast " << rays.size() << " samples in " << layers << " layers in " 460 << TimeDiff(startTime, GetTime()) * 1e-3 << " secs (" << rays_per_sec << " rays/sec)" << endl; 461 460 462 return layers; 461 463 } … … 852 854 void GlobalLinesRenderer::Visualize(const VssRayContainer &vssRays) 853 855 { 856 cout << "exporting visualization ... "; 854 857 Exporter *exporter = Exporter::GetExporter("globalLines.wrl"); 855 858 … … 877 880 } 878 881 879 if (ray->mPass == 4)882 //if (ray->mPass == 4) 880 883 outRays.push_back(ray); 881 884 } 882 885 883 exporter->ExportRays(outRays);884 886 //exporter->ExportRays(outRays); 887 cout << "finished" << endl; 885 888 delete exporter; 886 889 } … … 1030 1033 } 1031 1034 1032 Debug << "time spent in rendering: " << renderTime << endl;1033 Debug << "time spent in buffer: " << bufferTime << endl;1035 Debug << "time spent in rendering: " << renderTime * 1e-3f << endl; 1036 Debug << "time spent in buffer: " << bufferTime * 1e-3f << endl; 1034 1037 1035 1038 PrintGLerror("endpeeling");
Note: See TracChangeset
for help on using the changeset viewer.