有没有人在Chromecast上进行大图像,翻译/动画方面取得成功? [英] Has anyone had success with large image, translation/animation on Chromecast?

查看:72
本文介绍了有没有人在Chromecast上进行大图像,翻译/动画方面取得成功?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在播放音乐时,我尝试了几种不同的CSS动画在屏幕上上下移动大图像。我没有发现速度,转换的距离等会导致平滑过渡的任何变化。

解决方案

在Chromecast Chrome调试器的时间轴面板中的事件中,您会发现,在合理的屏幕范围内绘制任何Paint都需要大约100毫秒。是的,每秒1/10!



对于元素的移动,我没有看到CSS的任何区别。



动画性能与JQuery animation()性能的比较。我期望,因为糟糕的Paint时间隐藏了任何差异。



有人会认为Google会使用一些出色的视频硬件来改善Chromecast浏览器的绘制性能,但是这种类型的Chromecast应用似乎并不是一个他们的用例。


I've attempted several different css animations to move a large image up and down on the screen while I have music playing. I haven't found any variation on speed, distance translated, etc that results in a smooth transition.

解决方案

If you look at the Events in the Timeline panel of the Chromecast Chrome debugger, what you'll find is that any Paint to a reasonable amount of the screen takes about 100ms. Yes, 1/10 of a second! This makes any kind of animation (CSS, JQuery, etc.) very tricky and often jumpy.

For the movement of elements, I haven't seen any difference in CSS animation performance vs. JQuery animation() performance. I expect because the awful Paint times hide any differences.

One would have thought that Google would have used some of that great video hardware to improve the Chromecast browser paint performance, but this type of Chromecast app does not appear to be one of their uses cases.

这篇关于有没有人在Chromecast上进行大图像,翻译/动画方面取得成功?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆