Open main menu

CDOT Wiki β

Changes

GPU610/DPS915 Team 7 Project Page

1 byte added, 20:49, 18 February 2018
Undo revision 131636 by Alek Minassian (talk)
Analysis of the code shows that ''main'' calls ''ChessBoardTest'' which calls ''SaveImage''. Based on the profiling results above, the application spends the majority of its time in ''SaveImage''. Analyzing the code also shows that ''SaveImage'' calls ''TraceRay'' in a nested loop as follows:
<code> <nowiki>
for (size_t i=0; i < largePixelsWide; ++i)
 
{
 
......
 
for (size_t j=0; j < largePixelsHigh; ++j)
 
{
 
......
 
TraceRay();
 
......
 
}
 
}
</nowiki></code>
The remainder of the functions where the majority of the time is spent are called from ''TraceRay''. The timing statements added to the code show that 3261 milliseconds are spent in this nested loop. The total time spent in the application is 3658 milliseconds. Therefore, we can conclude that the majority of the time is spent in the above nested loop.
100
edits