Pass more accurate frame count to shaders