Analyzing the performance of doing different things in a project in opengl