mojo3d getting statistical data

About Monkey 2 Forums Monkey 2 Programming Help mojo3d getting statistical data

This topic contains 2 replies, has 3 voices, and was last updated by  cocon 1 year, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12741

    Xaron
    Participant

    Hi all,

    is there a way to read out some statistical data like number of processed vertices/triangles in mojo3d?

    How is that App.Fps working? Can I get the real (theoretical) FPS or just the rendertime? When I just measure the time when entering OnRender and leave it again I get quite low results which in no way match the FPS (which in that case goes below 60, so it seems to be “real”)

    Thanks!

    #12745

    nerobot
    Participant

    About FPS – it depends on SwapInterval, is there waiting for vsync or not.

    If rendertime is small then waiting time will be longer to make fps count const.

    #12746

    cocon
    Participant

    You can see this interesting discussion here: https://forum.lazarus.freepascal.org/index.php?topic=35689.0

    Perhaps one good approach is to handle timing yourself, use the SDL module directly, since the Window class is more of a user friendly abstraction, so it meant to do the common stuff.

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

You must be logged in to reply to this topic.