XNA Creators Club Online
Page 1 of 1 (5 items)
Sort Posts: Previous Next

Queries in XNA

Last post 05-12-2008 3:34 PM by jonyman. 4 replies.
  • 05-11-2008 11:26 AM

    Queries in XNA

    Hi,

    I'm wondering when Queries such as those available in DX9 might become available for XNA. I have an XNA game which and I'd like to find the bottle neck and optimise from there. Looking at the DX9 documentation there seems to be a comprehensive list of possible queries, however XNA seems to only have Occlusion queries :(

  • 05-12-2008 1:06 PM In reply to

    Re: Queries in XNA

    If you'd like to see additional functionality added to the XNA Framework, please submit feedback via the Connect site.
    Jim Perry

    Here's what I'm up to.

  • 05-12-2008 1:27 PM In reply to

    Re: Queries in XNA

    We don't have any current plans to expose any of those queries.

    I'd be interested in hearing more about which ones you are interested in, and what you would use them for. I'm not aware of any scenarios where those queries give information that couldn't be more accurately obtained using an external profiling tool such as PIX, or one of the various performance monitor utilities and instrumented drivers available from the hardware manufacturers, but if you have a use for them that these external tools cannot meet, we would definitely like to understand what that is.
    XNA Framework Developer - blog - homepage
  • 05-12-2008 3:22 PM In reply to

    Re: Queries in XNA

    Thanks for your response guys. Have registered with Connect and will use that if necessary. To be honest I hadn't considered using the performance tools offered by other companies. Will give the Nvidia suite a look at and see if it does what I need. In saying that though its hard to quantify though the performance penalty of these programs. I've used Pix before (not more than 10 times) and I get the feeling that there is a considerable overhead to getting the data, and thus not indicitive of realtime performance. Perhaps the nvidia tools will help me better. What I really need is to timestamp certain sections of the program, such as time sending the vertex data to the gpu and rendering shadow volumes and what time is spent rendering terrain etc. Perhaps these programs can allow me to performance check subsets of a program?

    As mentioned will check out the programs and let you know if they do what I need them to do :).

  • 05-12-2008 3:34 PM In reply to

    Re: Queries in XNA

    Hi Shawn, quick comment. Was flicking through your blog and noticed you warn about SetData. In the program I mentioned I build the shadow volume data again every frame and call SetData for every item in the scene and then draw it a few lines later after setting graphics state.

    Your blog also talks alot about being CPU/GPU bound which is something I need to quantify in this program, thanks for your comment and your blog lol.

Page 1 of 1 (5 items) Previous Next