Coder Social home page Coder Social logo

Add "optick" package about hunter HOT 10 OPEN

cpp-pm avatar cpp-pm commented on July 24, 2024
Add "optick" package

from hunter.

Comments (10)

NukeBird avatar NukeBird commented on July 24, 2024

Brofiler has been renamed into Optick starting from v1.2.0.

from hunter.

bkotzz avatar bkotzz commented on July 24, 2024

Unless you need to use this with the Vulkan sdk it looks like this package doesn’t have any dependencies, so it shouldn’t be too hard to pull in, but it will need some cmake changes. Are you looking for a fork to make these changes on?

from hunter.

NukeBird avatar NukeBird commented on July 24, 2024

I don't really sure what should be patched, the only dependency I can see here is pthread (for linux)...

from hunter.

NukeBird avatar NukeBird commented on July 24, 2024

Please tell me what can I do and I will try my best

from hunter.

rbsheth avatar rbsheth commented on July 24, 2024

@NukeBird Please remove things that toolchains should be taking care of, such as C++ standards and certain compiler flags. For example, this line should be removed/commented: https://github.com/bombomby/optick/blob/master/CMakeLists.txt#L6

from hunter.

rbsheth avatar rbsheth commented on July 24, 2024

Fork created: https://github.com/cpp-pm/optick

from hunter.

NukeBird avatar NukeBird commented on July 24, 2024

Can I assume that optick will be always a static library?

they're saying

Basic Integration (one line of code)
Copy 'src' folder from the repository or latest release to your game project
Add OPTICK_FRAME("MainThread"); macro to the main loop of your game and #include "optick.h" header
...

and when OPTICK_ENABLED is OFF CMakeLists making just a STATIC library, otherwise - shared

The only thing should be modified: USE_OPTICK=1 instead of USE_OPTICK=0 because of optick.config.h file

Also. Can I assume that OPTICK_ENABLE_GPU_D3D12 and OPTICK_ENABLE_GPU_VULKAN are always OFF? If no, what can we do?

from hunter.

rbsheth avatar rbsheth commented on July 24, 2024

Well, it seems that if you want Optick to be used, it is currently only available as a SHARED library: https://github.com/bombomby/optick/blob/master/CMakeLists.txt#L45

You can change that to STATIC.

Can we not link against Optick and then leave it to the consuming application to set USE_OPTICK appropriately? That seems like the correct method. In which case, you should always build the library (not the dummy version) in the Optick Hunter package.

One can pass the D3D12 or VULKAN flags in hunter_cmake_args or in hunter_config. If those code paths are important, we should support them.

from hunter.

NukeBird avatar NukeBird commented on July 24, 2024

oh, with default values it makes a lot of sense now
yes, I would love to switch SHARED to STATIC

gonna make a pull request to the fork repository soon

from hunter.

NukeBird avatar NukeBird commented on July 24, 2024

cpp-pm/optick#1

from hunter.

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.