enhancements to opengl drawing algorithm - hopefully faster