applied canvas optimizations to webgl rendererg