GithubHelp home page GithubHelp logo

Unnecessary setters about fpsci HOT 5 CLOSED

nvlabs avatar nvlabs commented on July 28, 2024
Unnecessary setters

from fpsci.

Comments (5)

jspjutNV avatar jspjutNV commented on July 28, 2024

I assume these setters were created so the Experiment could safely set these values. I'm not sure the Experiment still sets these, or if they're only set up front. I'd prefer to remove these functions and just directly set the variables.

@joohwankimNV , are you okay with this simplification?

from fpsci.

bboudaoud-nv avatar bboudaoud-nv commented on July 28, 2024

To provide a bit more detail, at least setSceneBrightness() is only every called with m_sceneBrightness as its argument, so this is effectively equivalent to m_sceneBrightness = m_sceneBrightness.

from fpsci.

jspjutNV avatar jspjutNV commented on July 28, 2024

Oh wow, so it seems like there was some confusion around setSceneBrightness() to begin with.

Maybe some version of the ReactionExperiment was using this in the past. I think for abstract-fps it's totally safe to remove.

from fpsci.

bboudaoud-nv avatar bboudaoud-nv commented on July 28, 2024

Okay, planning to deal with both of these functions in one commit. Will leave a commented out line indicating where scene brightness was "set" before (even though it was always just re-assigned to identity).

from fpsci.

bboudaoud-nv avatar bboudaoud-nv commented on July 28, 2024

These were removed as of a recent commit, there is still a commented out line at line 688 of App.cpp intended to capture where we had done this previously.

from fpsci.

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.