From f99e6cbff7dc018c0e224164e4be4bfc441b657b Mon Sep 17 00:00:00 2001 From: andreja6 Date: Thu, 7 Nov 2019 21:52:46 -0800 Subject: [PATCH] Turns out raycasting every 1/30th of a second takes a massive hit on performance --- Application.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application.cpp b/Application.cpp index 05da96e..79a1659 100644 --- a/Application.cpp +++ b/Application.cpp @@ -650,7 +650,7 @@ void Application::onGraphics(RenderDevice* rd) { glEnable( GL_TEXTURE_2D ); glEnable(GL_BLEND);// you enable blending function glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); - + /* std::vector instances = _dataModel->getWorkspace()->getAllChildren(); currentcursorid = cursorid; for(size_t i = 0; i < instances.size(); i++) @@ -667,7 +667,7 @@ void Application::onGraphics(RenderDevice* rd) { } } - + */ glBindTexture( GL_TEXTURE_2D, currentcursorid);