Porting over the traversal algo to do some in situ programming. Running into some pretty bad register pressure bottlenecks. Might pivot to thinking about the multistage kernel for a bit

This commit is contained in:
MitchellHansen
2017-10-21 19:40:00 -07:00
parent 36bf5697fa
commit 40634837a9
5 changed files with 211 additions and 62 deletions

View File

@@ -12,6 +12,8 @@ ArrayMap::ArrayMap(sf::Vector3i dimensions) {
//voxel_data[i] = 1;
}
setVoxel(sf::Vector3i(1, 1, 5), 1);
for (int x = 0; x < dimensions.x; x++) {
for (int y = 0; y < dimensions.y; y++) {
setVoxel(sf::Vector3i(x, y, 0), 1);