I worked a bit more on my perfNow shim approach. Instead of ignoring the timestamp on each rAF callback, I am validating it. So with this new approach, here is what will happen:
Non-rAF browsers will remain unchanged.
rAF browsers w/out performance.(prefix)now will remain unchanged.
rAF browsers w/ performance.(prefix)now will use the new high-res timestamp.
Also added in @rvagg's new duration test and made it slightly more forgiving (because web browsers are chuggy on page load... thanks Rod for the epic session last night btw).
All tests passing in:
Win 7 / IE9
Win 7 / IE10
Win 7 / Firefox 4
Win 7 / Firefox 12
Win 7 / Chrome 24.0.1312.14
OSX / Firefox 15
OSX / Firefox 19.0a2
OSX / Safari 6.0.2
OSX / Chrome 23.0.1271.95
OSX / Chrome 25.0.1354.0 canary
Mixed results in the old dogs:
IE 6-8 - Basic duration is passing, but Color + Transform are failing (This seems to be another issue, unrelated to the animation loop though.)
Really hope this is cool with you guys because I'm fucking tired of typing rAF.
I worked a bit more on my
perfNow
shim approach. Instead of ignoring the timestamp on eachrAF
callback, I am validating it. So with this new approach, here is what will happen:performance.(prefix)now
will remain unchanged.performance.(prefix)now
will use the new high-res timestamp.Also added in @rvagg's new duration test and made it slightly more forgiving (because web browsers are chuggy on page load... thanks Rod for the epic session last night btw).
All tests passing in:
Mixed results in the old dogs:
Really hope this is cool with you guys because I'm fucking tired of typing
rAF
.:shipit: