adding check for DOM to avoid style reset.
using Array when Float32Array is not supported.
using totalRenderCalls for canvas