Using APPFLAG's in Shared Memory

Discussion in 'Rivatuner Statistics Server (RTSS) Forum' started by Skewjo, Mar 24, 2021.

  1. Skewjo

    Skewjo Member

    Messages:
    34
    Likes Received:
    0
    GPU:
    GTX 1060 3GB
    Hello RTSS Forum.

    Does anyone have an example of how to use the APPFLAG's to retrieve the current rendering API in use?
    upload_2021-3-24_9-4-30.png

    I'm easily able to get the API to appear on in my overlay using the ```<A>``` tag, but I'm at a loss when it comes to retrieving that info. Are the flags defined in ```dwSignature```?
     
    Last edited: Mar 24, 2021
  2. Skewjo

    Skewjo Member

    Messages:
    34
    Likes Received:
    0
    GPU:
    GTX 1060 3GB
    Also, can RTSS determine whether or not V-sync is currently enabled?
     
  3. Unwinder

    Unwinder Moderator Staff Member

    Messages:
    15,304
    Likes Received:
    2,606
    The meaning of dwSignature filed is commented in the header. And no, it doesn't contain _application_specific_ flags. There can be multiple 3D applications running simultaneously, each one using different 3D API. So it is pointless to expect application specific flags to be packed into a single shared memory variable like you assumed. There is application data array, conaining it for all independent hooked 3D apps.
     
  4. Unwinder

    Unwinder Moderator Staff Member

    Messages:
    15,304
    Likes Received:
    2,606
    No, it is not RTSS job. And never was.
     

  5. Skewjo

    Skewjo Member

    Messages:
    34
    Likes Received:
    0
    GPU:
    GTX 1060 3GB
    I'm already using the
    Code:
    RTSS_SHARED_MEMORY_APP_ENTRY arrApp[256];
    , but didn't think far enough ahead to realize that's where I'd need to grab that value.

    From this var I guess? :
    upload_2021-3-24_14-23-37.png
     
  6. Unwinder

    Unwinder Moderator Staff Member

    Messages:
    15,304
    Likes Received:
    2,606
    Correct.
     
    Skewjo likes this.
  7. Skewjo

    Skewjo Member

    Messages:
    34
    Likes Received:
    0
    GPU:
    GTX 1060 3GB
    Sorry, this is totally unrelated, but do you think it's possible to determine if v-sync is on based on recent framerate and frametime?

    One thing that (I believe) v-sync does is set the framerate to be (absolutely) constant, and this is reflected when I turn it on in DotA(it stays at exactly 60.0).
    I'm thinking if I get the same exact frame value 10+ frames in a row v-sync must be on, right?
     
  8. Unwinder

    Unwinder Moderator Staff Member

    Messages:
    15,304
    Likes Received:
    2,606
    Nope, you cannot determine it reliably this way.
     
    Skewjo likes this.

Share This Page