Насколько эффективен данный код в плане оптимизации?
public static void renderModel(IModelCustom model, boolean all, String part) {
GL11.glPushMatrix();
int index = GL11.glGenLists(1);
GL11.glNewList(index, GL11.GL_COMPILE);
if(all) {
model.renderAll()...