~10 FPS from moving some oct stuff to const, ~0.5 fps from adding a few more consts to initializers in the kernel

This commit is contained in:
MitchellHansen
2017-10-07 21:32:22 -07:00
parent 58ef1da02a
commit c5c65474d6
8 changed files with 159 additions and 71 deletions

View File

@@ -23,9 +23,6 @@ Application::~Application() {
bool Application::init_clcaster() {
//Map _map(32);
//return 0;
// Start up the raycaster
raycaster = std::make_shared<CLCaster>();
if (!raycaster->init())
@@ -38,7 +35,9 @@ bool Application::init_clcaster() {
// Send the data to the GPU
raycaster->assign_map(map);
octree = std::make_shared<Map>(128, map.get());
// Init the raycaster with a specified dimension and a pointer to the source
// array style data
octree = std::make_shared<Map>(64, map.get());
raycaster->assign_octree(octree);