Frame per second setting

Dolce SaitoDolce Saito Posts: 192
edited September 19 in Daz Studio Discussion

I know this is going to put giggles on the reader's face, but as an experienced daz studio user, I'm having hard time setting FPS to 125.

I wonder if it is something to do with my studio or a very funny bug. Can someone confirm this?

Easy to replicate: Just open the studio, then set fps to 125 in the timeline. I'm having heart attack here, it goes to 126.

Post edited by Dolce Saito on

Comments

  • OK, I have no idea why that is happeneing - but set it to 126, then press the down arrow key once.

  • crosswindcrosswind Posts: 6,974

    Interesting... I entered 91 but got 93, 95 > 97, 97 > 97, 98 / 99 > 100... Kidding me ? Something is calculated there ?

  • Richard HaseltineRichard Haseltine Posts: 100,905
    edited September 20

    http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/time_dz says that time is measued in ticks of 1/4,800 of a second. 125 FPS would make each frame 38.4 ticks, which is not an integer value. I don't tknow that that explains why the arrow keys work, but I think the issue is essentially that of validating the entry can be reasonably erxpressed as an integer number of ticks.

    (function(){
        
        var s_nTPS = 4800;
        
        function toTimeStep( nFPS )
        {
            return Math.floor( s_nTPS / nFPS );
        };
        
        function toFPS( nStep )
        {
            return Math.floor( s_nTPS / nStep );
        };
        
        var nFPS = 95;
        var nStep = toTimeStep( nFPS );
        print( "in fps :", nFPS );
        print( "raw step :", s_nTPS / nFPS );
        print( "int step :", nStep );
        print( "out fps :", toFPS( nStep ) );
        
    })();

    Post edited by Richard Haseltine on
  • crosswindcrosswind Posts: 6,974

    Good to know ! Thank you for the explanation, Richard ! 

  • Wow. Just wow. Thanks Richard. I was about to throw the computer out of window.

    From how I see it, the fps value is something that can divide 4800 without a remainder.

     

    Incredible. And thanks.

Sign In or Register to comment.