Slow autocomplete on GLFW / OpenGL project

Hi,

I'm working on some learning project using opengl (glad), glfw and some other libraries. And for some reasons auto complete is very slow.

Is there any tip to optimize my code ? I tried adjusting VM heap it seams i'm not overflowing it it seems to more a processing issue.

I use the 2019.1.1 Trial version of CLion on mac Mojave.

I drop the project on github just in case :

https://github.com/gillesboisson/cppgllearn

Here is link to cmake file :

https://github.com/gillesboisson/cppgllearn/blob/master/CMakeLists.txt

As learning c++ at the same time maybe there is something I'm missing in the way managing dependancies

Thanks

 

0
1 comment

Found some partial solution, as I'm rockie in cpp, I made mistake (not sure if it really is) I add some using namespace glm (open gl math) in some header files, it seems to be a bad practice, it solved my performance issues to move it in cpp file and avoiding some global dependency effect on the whole project.

It also speed up compilation time. 

If someone have some tips on good inclusion / namespace using, I'll be more than happy to learn from the masters :)

Cheers.

0

Please sign in to leave a comment.