V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
jiyinyiyong
V2EX  ›  问与答

Clutter 的 timelimes 怎么理解?

  •  
  •   jiyinyiyong · 2012-01-07 18:36:18 +08:00 · 2929 次点击
    这是一个创建于 4493 天前的主题,其中的信息可能已经有所发展或是发生改变。
    尝试去看 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 怎样精确控制动画的速度参数呢?
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2775 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 05:49 · PVG 13:49 · LAX 22:49 · JFK 01:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.