Open main menu

CDOT Wiki β

Solo Act

Revision as of 19:44, 13 April 2018 by Njsimas (talk | contribs) (Assignment 2)

Solo Act

Team Members

  1. Nick Simas, All of the things.

Progress

Assignment 1

Profile

For assignment 1, I selected an open-source dungeonGenerator project from github.

https://github.com/DivineChili/BSP-Dungeon-Generator/

   

As you can see from the above images, the purpose of this program is to generate a map image for game content. The program achieves this by repetitively splitting a 2d space using a binary partition algorithm.

The project was written for windows, so I decided to initially profile with the built in Visual Studio profiler.

 

The above image shows the function inclusive time percentage. The results are 22% and 15% respectively. The only entries higher are Main and library components used for printing. This demonstrates that the majority of source code processing is occurring in these two functions. Both of them would thus are hotspots and may benefit from parallelization.

Assignment 2

Parallelize

One of the immediate problems I realized with this project was that the target functions were far too large. Parallelization would require possibly three or more kernels, which was beyond the scope of this assignment. Instead I decided to focus on the bsp tree portion of the code, and decouple this portion from actual dungeon generating logic.

 

The decoupled source-code can be seen above, along with the timing logic in it's respective main function.

 

To parrellize a bsp tree required some analysis which can be seen above.

 

The image above reflects the design I chose with respect to the warps and thread behavior.

 


500px


 



 

Assignment 3

Optimize