Ignore:
Timestamp:
11/23/06 12:25:16 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r1778 r1784  
    330330                                                                          ) const 
    331331{ 
     332        long startTime = GetTime(); 
     333 
    332334        SimpleRayContainer simpleRays; 
    333         long startTime = GetTime(); 
     335         
     336        simpleRays.reserve(samplesPerPass); 
     337        passSamples.reserve(samplesPerPass * 2); // always creates double rays 
    334338 
    335339        // create one third of each type 
     
    349353        } 
    350354 
    351         cout << "generated " << samplesPerPass << " samples in " << TimeDiff(startTime, GetTime()) * 1e-3 << " secs" << endl; 
     355        cout << "generated " << samplesPerPass << " samples in "  
     356                 << TimeDiff(startTime, GetTime()) * 1e-3 << " secs" << endl; 
    352357 
    353358        startTime = GetTime(); 
     359 
    354360        // shoot simple ray and add it to importance samples 
    355361        mPreprocessor->CastRays(simpleRays, passSamples, true); 
    356         cout << "cast " <<  samplesPerPass << " samples in " << TimeDiff(startTime, GetTime()) * 1e-3 << " secs" << endl; 
     362        cout << "cast " <<  samplesPerPass << " samples in "  
     363                 << TimeDiff(startTime, GetTime()) * 1e-3 << " secs" << endl; 
    357364 
    358365        return (int)passSamples.size(); 
Note: See TracChangeset for help on using the changeset viewer.