代码之家  ›  专栏  ›  技术社区  ›  Jalal

如何发现最终用户的系统性能设置?

  •  6
  • Jalal  · 技术社区  · 16 年前

    是否有任何标准的例程来执行此操作,或者我只需要读取sysinfo?

    2 回复  |  直到 16 年前
        1
  •  2
  •   Amsakanna    16 年前

    您可以使用 Tier RenderCapability 类是静态的。

    有关渲染层的信息,可以查看 this

    如果你检查链接,你会发现前16位是必需的,你必须按16位移位。

    int renderingTier = (RenderCapability.Tier >> 16);
    if (renderingTier == 0)
    {
        Trace.WriteLine("No graphics hardware acceleration available");
    }
    else if (renderingTier == 1)
    {
        Trace.WriteLine("Partial graphics hardware acceleration available");
    }
    else if (renderingTier == 2)
    {
        Trace.WriteLine("Gotcha!!!");
    }
    
        2
  •  1
  •   Vincent McNabb    16 年前

    System.Windows.Forms.SystemInformation 班级。

    例如

    if (SystemInformation.UIEffectsEnabled) {
       // do something
    } else {
       // don't do that something
    }