change fps

Help
firex
2008-01-16
2013-03-24
  • firex
    firex
    2008-01-16

    Hello All,

    how can i change the frequency of call for my function in application used with viewer.py? at the moment i note my function is called 30 times per second.

    i tried to change timer.fps and timer.timestep properties but without success. i used 

    eventmanager.connect(STEP_FRAME, spam)

    to call my function periodical.

    sorry for English, thanks for Answers.

     
    • Matthias Baas
      Matthias Baas
      2008-01-17

      You can do it from the command using the -f/--fps option:

        viewer.py myscene.py -f 24

      or within the script using the Globals() section:

        Globals(
           fps = 24
        )

      - Matthias -

       
      • firex
        firex
        2008-01-17

        thank you Matthias!

        i will try it tomorrow

        Firex