FPS, Delta, FixedFPS, Timing, Animation Topic (almost done)

About Monkey 2 Forums Monkey 2 Programming Help FPS, Delta, FixedFPS, Timing, Animation Topic (almost done)

This topic contains 16 replies, has 7 voices, and was last updated by  Arjailer 2 years, 7 months ago.

Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #3450

    gcmartijn
    Participant

    Final round 🙂

    I just going back to my old setup what is working, using a delta class I found some years ago.
    (In the bananas, no delta code found)

    Can someone agree with the fact below ?, then I and maybe others understand it better then.
    Its hard to understand because of the various factors:
    CPU / GPU / MONITOR (hz) / MX2
    When I use my delta timing code below and use the this setting:
    – SwapInterval=0 > I get FPS 450+
    – SwapInterval=1 > I get FPS 60 (I will use this setting)

    Everything looks oke now, but need to be sure.

    [fact 1] Because I’m using the delta I don’t care about the FPS, the movement (looks) works oke 🙂
    [fact 2] Devices that don’t support SwapInterval=1, movement will be oke because i’m using delta
    [fact 3] Devices with 75hz or other are oke because i’m using delta
    [fact 4] MX2 loop is always like this App.RequestRender() then OnUpdate() then OnRender()

     

    #3466

    Arjailer
    Participant

    As far as I know:

    [fact 1] Yes
    [fact 2] Yes
    [fact 3] Yes
    [fact 4] Yes- with a clarification – App.RequestRender() seems to be telling the app to call OnRender() for the next frame (so it’s too late to stop the current frame as it’s already underway, but you could avoid calling it for subsequent frames if you wanted – e.g. if the window had lost focus). So as long as you call App.RequestRender() somewhere in the OnRender() method you’re good – I don’t think the order matters.

    Also, I confirmed the SwapInterval behaviour last night with an old 19″ 75hz monitor I have at home – just using SwapInterval = 1 and not setting an explicit resolution it’s updating 75 times a second as I suspected.

Viewing 2 posts - 16 through 17 (of 17 total)

You must be logged in to reply to this topic.