Use VBO's instead of immediate mode.