Git Product home page Git Product logo

Comments (4)

falahati avatar falahati commented on May 27, 2024

What is the error message?

Topology is phase 1 mosaic API and is obsolete. Consider using GridTopology class which is phase 2 mosaic API. The correct way to disable mosaic using the phase 2 API is to simply create a topology for each display and use SetGridTopologies static method to activate them all.

from nvapiwrapper.

falahati avatar falahati commented on May 27, 2024
var currentConfig = GridTopology.GetGridTopologies();
var newConfig = currentConfig
                         .SelectMany(t => t.Displays)
                         .Select(d => new GridTopology(1, 1, d))
                         .ToArray();
GridTopology.SetGridTopologies(newConfig, SetDisplayTopologyFlag.MaximizePerformance);

from nvapiwrapper.

gmeisel01 avatar gmeisel01 commented on May 27, 2024

Thank you so much for clearing that up! I will give it a try. Surprisingly, there is nothing on the internet that even mentions this change in functionality in the NvApi, in fact, Nvidia still shows the the old functions in there current documents and still recommends using it to disable topo's?

from nvapiwrapper.

falahati avatar falahati commented on May 27, 2024

NVAPI is not actually known for its good documentation :) But for this specific issue there is a block in the nvapi.h file that says:

// ###########################################################################
// DELME_RUSS - DELME_RUSS - DELME_RUSS - DELME_RUSS - DELME_RUSS - DELME_RUSS
//
//   Below is the Phase 1 Mosaic stuff, the Phase 2 stuff above is what will remain
//   once Phase 2 is complete.  For a small amount of time, the two will co-exist.  As
//   soon as apps (nvapichk, NvAPITestMosaic, and CPL) are updated to use the Phase 2
//   entrypoints, the code below will be deleted.
//
// DELME_RUSS - DELME_RUSS - DELME_RUSS - DELME_RUSS - DELME_RUSS - DELME_RUSS
// ###########################################################################

But that's the only place that mentions this.

That's why I suggest using the high-level APIs and don't go for anything inside the Native namespace until you are sure that you have to. I marked the phase 1 classes as obsolete so that the library user knows that. But I didn't do so for the low-level functions in the Native namespace.

from nvapiwrapper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.