动画我正在使用JavaScript动画:增加FPS以JavaScript
function animate(){
window.setTimeout(function(){
//Do a new frame and recall this function till the animation is finished
}, 1000/FPS);//FPS Default 15 approximately 60FPS
}
animate();
我不知道我怎样才能提高FPS不失品质?使用已经内置的css3不是一个选项,因为我有自定义的动画。
你尝试过'window.requestAnimationFrame'吗? – 2014-07-16 17:35:07