optimize gpu upload (use glBufferSubData instead of glMapBuffer Avoid checking char array against zero.