Optimizing geometry draw calls and some other sections of code