renderer: Use double precision in some places to attempt fixing some of the animation time wrap bugs.