Clutter 的 timelimes 怎么理解?

2012-01-07 18:36:18 +08:00
 jiyinyiyong
尝试去看 Clutter 的时候卡在这上面了, 上面这么解释的
The clutter.Timeline() constructor function takes a duration in milliseconds. The actual number of frames per second requested by the timeline will depend on the behaviour of your entire program, the performance of your hardware, and your monitor's refresh rate. It may even vary over time as conditions change. At best, the new-frame signal will be emitted at your monitor's refresh rate. At worst it will be called once at the start and once at the end of your timeline's duration.
http://www.modrana.org/pyclutter_tutorial/tutorial/html/sec-timelines.html
写在函数里面是这个样子, 特别是括号里的参数
timeline = clutter.Timeline(5000) # milliseconds
按解释的, 实际上是硬件和程序性能决定刷新的频率
那么, 这里的这个参数是做什么用的?
而且我尝试去修改这个参数, 看结果一点差别都没有
那么, clutter 用这样一个 API 怎样精确控制动画的速度参数呢?
2941 次点击
所在节点    问与答
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/25150

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX