How to control frame rates without v-sync?

About Monkey 2 Forums Monkey 2 Programming Help How to control frame rates without v-sync?

This topic contains 10 replies, has 6 voices, and was last updated by  Skaruts 1 year, 8 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #9619

    Skaruts
    Participant

    I’d like to know if there’s a tool for this in Monkey, or if I’ll have to figure out how to call App.RequestRender() on timed intervals.

    I’m not sure how to calculate those intervals though…

    #9620

    Mark Sibly
    Keymaster

    You can use a timer, check out the spacechimps banana which lets you toggle vsync/timer syncing.

    #9635

    Skaruts
    Participant

    Ah, thanks. Will do. 🙂

    EDIT: by the way, whenever I move the window it leaves a white trail. Is there a way to avoid this?

    #9640

    nerobot
    Participant

    Skaruts, do you override OnWindowEvent for your window class?

    If yes check to call Super.OnWindowEvent inside.

    And is Ted(2Go) IDE’s window has the same behaviour?

    #9654

    Mark Sibly
    Keymaster

    EDIT: by the way, whenever I move the window it leaves a white trail. Is there a way to avoid this?

    What platform/os etc are you using?

    Does it happen with all mx2 apps?

    #9657

    Skaruts
    Participant

    Actually, I just noticed that the white trail only happens when Ted2go is on the background. If I minimize Ted it doesn’t happen anymore. And it happens with any window, not just monkey apps (and it disappears as soon as the mouse hovers on something that makes Ted refresh, or enters the taskbar area at the bottom – (gif image)).

    Using Windows 7, by the way.

    It’s no big deal, I just thought at first that it was a problem in the running monkey apps.

    #9661

    Mark Sibly
    Keymaster

    Hmm, another interesting windows 7 feature!

    Windows 10 is definitely the recommended  dev platform for monkey2…

    #9669

    DruggedBunny
    Participant

    Don’t get that here on 7!

    #9670

    EdzUp
    Participant

    This could also be related to video memory or drivers so I wouldn’t read to much into it.

    #9676

    therevills
    Participant

    I posted this a bit ago:

    Delta Timing Vs Fixed Rate Logic Vs Timer

    #9707

    Skaruts
    Participant

    Yea, it’s probably that my windows is most desperately needing a renewal…

    I do also have a 64bit windows on 2GBs on RAM…

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.