User Tag List

Results 1 to 6 of 6

Thread: Detect HWA support

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Jan 2007
    Posts
    167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Detect HWA support

    What’s a good way to detect if a user’s computer supports HWA? I have a few users whose games run slow, apparently they’re running the game on an old computer. My game has the display settings which users can change. I’d like to remove the Direct3D9 setting if the computer can’t handle it.

    2nd question: In case there is no way to do it,if this kind of thing would always work:
    Hiding a warning message with a shader?

  2. #2
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: Detect HWA support

    Maybe use the PixelShaderVersion expression? If its <= 100 then it's probably an old machine (change 100 to 0 or 200 according to your application).

  3. #3
    No Products Registered

    Join Date
    Jun 2006
    Posts
    1,630
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Detect HWA support

    Yves I think you told me once that we can retrieve with a numer from Storyboard controls/ Screen/Display. I don't remember exactly but it returned a number that tells if it is running software mode or which DX version.

  4. #4
    Clicker Multimedia Fusion 2

    Join Date
    Jan 2007
    Posts
    167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Detect HWA support

    Aha, I haven't seen these expressions before. Thanks!

  5. #5
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Aug 2006
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Detect HWA support

    Nice, i did not know about this either. Would i be correct in guessing you just divide that value by 100 so if it's 200 they have pixel shader 2.0 etc?

    Maybe for a update it could find which Direct3D/X version someone is using and maybe the graphics card and gpu use also. These would be quite useful because you could make a setup app where users could test if the effects will work correctly etc. I think all of that info can be found with extensions but it would be nice to have it as default options.

  6. #6
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: Detect HWA support

    Yes, you're correct. HWA documentation :

    Storyboard object / New Display Mode expression : returns 1 (standard graphic mode), 2 (DirectDraw), 4 (Direct3D8) or 8 (Direct3D9).

    Storyboard object / New Pixel Shader Version expression : returns the maximum version of the pixel shaders supported by the video card. Returns major version * 100 + minor version, for example 104 if the video card supports shaders 1.4.

Similar Threads

  1. How to detect if no iAD is displayed?
    By JoKa in forum iOS Export Module Version 2.0
    Replies: 8
    Last Post: 17th February 2012, 08:04 AM
  2. How to detect a directory?!
    By HelliXSystems in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 24th April 2010, 02:11 PM
  3. How to detect Alt and F10
    By LB in forum File Archive
    Replies: 5
    Last Post: 25th March 2010, 11:56 AM
  4. How do i detect if Prt Sc has been pressed ?
    By Spryz in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th November 2009, 01:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •