Flash Player 神奇的帧速率

发布于 2024-07-25 10:51:49 字数 214 浏览 2 评论 0原文

很久以前(5 年多)我读过一篇关于 Flash Player 最佳帧速率的文章。 这篇文章通过一些计算得出结论,每秒 31 帧是运行电影的最佳 fps,当时对我来说似乎很合乎逻辑,从那时起就一直使用 31 fps。

然而,我已经忘记了那篇文章的推理,我想知道 31 fps 是否仍然被认为是运行 swf 的良好或最佳 fps。

您更喜欢哪种 fps 的 swf,为什么?

A long time ago (5+ years) I read an article about optimal frame rates for the Flash Player. The article reasoned through some calculations that 31 frames per second was the optimal fps to run your movies at and seemed, at the time, logical to me and have been using 31 fps ever since.

However, I have forgotten the reasoning from that article and I was wondering if 31 fps is still considered a good or optimal fps to run your swf's at.

What fps do you prefer for your swf's and why?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

妖妓 2024-08-01 10:51:49

31 fps 的原因是在 Flash 5/6 期间,Mac 版本的 Flash Player 存在问题,在某些帧速率下它会趋于稳定。 也就是说,如果你以 12-17 FPS 运行,它很少会超过 12。但是,如果你将 FPS 设置为 18,它就会保持在 18 就好了。

“最佳点”稳定在 31 fps,因为它提供了最流畅的动画(假设您没有进行逐帧动画,在这种情况下 31 的工作强度太大),同时又不像下一个那样占用 CPU 资源高原,我认为是 61 fps。

尽管那些日子已经过去,但在流畅的动画和 CPU 之间取得平衡仍然很重要。 确保在项目开始时留出一些时间(特别是如果它有任何手工补间!)来找出实现您目标的最佳位置。

The reason for the 31 fps was that during the time of Flash 5/6 there was an issue with the Mac version of the Flash Player where it would plateau at certain frame rates. That is, if you ran at 12-17 FPS, it would rarely get past 12. However, if you set the fps to 18, it would stick to 18 just fine.

The "sweet spot" plateau was at 31 fps because it offered the smoothest animation (assuming you weren't doing frame-by-frame animation, in which case 31 was just too work intensive) while not being nearly as CPU intensive as the next plateau, which I believe was 61 fps.

Even though those days are behind us it is still important to strike that balance between smooth animations and CPU. Make sure you set some time aside at the beginning of your project (particularly if it will have any hand-done tweening!) to figure out where the sweet spot is for your goals.

你又不是我 2024-08-01 10:51:49

我不是 Flash 专家,但这听起来很有趣,至少可以用谷歌搜索一下。 此论坛帖子暗示“行业标准” 31 fps 来自 Flash 5 错误。 由于 Flash 5 不久前出现,人们似乎同意现在可以更自由地选择帧速率,一切不必都使用 31 fps 制作。

I'm no Flash expert, but this sounded interesting enough to at least do some Googling. This forum thread implies that the "industry standard" of 31 fps comes from a Flash 5 bug. Since Flash 5 was a while ago, people seem to agree that you're more free to pick a framerate these days, everything doesn't have to be made using 31 fps.

苍暮颜 2024-08-01 10:51:49

另外不要忘记,您可以通过设置 Stage.frameRate 属性在运行时动态设置帧速率。 有些人会在应用程序未聚焦时降低帧速率以节省 CPU 使用量,或者在进行更密集的数据处理之前提高帧速率。

Also don't forget that you can set the framerate dynamically at runtime by setting Stage.frameRate property. Some people have implemented reduced framerates when app is not in focus to save on CPU use, or increased it before doing more intensive data processing.

故事和酒 2024-08-01 10:51:49

通常动画为 12-16,编码内容通常为 25-30。

另外,看看这个类: http://www.gskinner .com/blog/archives/2009/05/idle_cpu_usage.html

它可以让您利用高帧速率,而不会产生高后台 CPU 使用率的后果! 另外,它很容易适应非空气物质。 (只需注释掉任何会给您带来编译器错误的内容)。

Usually 12-16 for animation, and 25-30 for coding stuff.

Also, take a look at this class: http://www.gskinner.com/blog/archives/2009/05/idle_cpu_usage.html

It lets you take advantage of high framerates without the consequence of high background CPU usage! Plus, it is easily adaptable for non-air stuff. (just comment out anything that gives you a compiler error).

绾颜 2024-08-01 10:51:49

31-33 FPS 是 AS2 的神奇数字。

您可以使用 AS3 流畅地运行大约 50-60 FPS 的速度,并且您会注意到巨大的改进。

31-33 FPS was the magic number for AS2.

You can smoothly run around 50-60 FPS with AS3, and you'll notice a huge improvement.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文