Git Product home page Git Product logo

Comments (6)

AnastaZIuk avatar AnastaZIuk commented on June 14, 2024

Unfortunately we realize the problem exists and we will filter this history at some point, thanks for pointing it out. I've tried to cut the size first here #600. Shall we sort this out @devshgraphicsprogramming?

@expenses current nice solution would be to do shallow clone, you will reduce the size to 6.19 MiB

$ git clone --depth=1 [email protected]:Devsh-Graphics-Programming/Nabla.git .
Cloning into '.'...
remote: Enumerating objects: 2663, done.
remote: Counting objects: 100% (2663/2663), done.
remote: Compressing objects: 100% (2275/2275), done.
remote: Total 2663 (delta 386), reused 1789 (delta 310), pack-reused 0
Receiving objects: 100% (2663/2663), 6.19 MiB | 6.11 MiB/s, done.
Resolving deltas: 100% (386/386), done.

If Nabla is your submodule you can shallow init and update it too

git submodule update --init --depth=1 <module_path_to_nabla>

If you build Nabla I recommend to let CMake do submodule updates for you, to request shallow updates we have NBL_CI_GIT_SUBMODULES_SHALLOW option, you can also exclude whole examples_tests (and parents) from the submodule request init & update by turning off NBL_BUILD_EXAMPLES option, to toggle the request you can use NBL_UPDATE_GIT_SUBMODULE option

from nabla.

AnastaZIuk avatar AnastaZIuk commented on June 14, 2024

but (I might be mistaken) it seems like it was part of this repository in the past.

indeed, got filtered with git-filter-repo :D

from nabla.

devshgraphicsprogramming avatar devshgraphicsprogramming commented on June 14, 2024

I'd love to be able to include it in my project for some of the glsl built-ins, but this is a little too large for me to casually include it as a git submodule if I just want to use one or two functions.

@expenses you're probably better off justcopying the GLSL over into your project, because we're about to delete it in favour of HLSL.

If you're comfortable with removing these two directories from git history then I say go for it. Obviously that's necessarily an easy decision to make though. examples_tests is now a submodule but (I might be mistaken) it seems like it was part of this repository in the past.

The ditt branch is pretty far behind, and we need to keep it alive for some time (until a new Vulkan Path Tracer replaces the OpenGL+OpenCL+CUDA abomination we made).

Once that's done I'm somewhat open to "truncating" the history.

However I'll probably move out nbl/builtin/hlsl to a submodule first.

from nabla.

expenses avatar expenses commented on June 14, 2024

@expenses current nice solution would be to do shallow clone, you will reduce the size to 6.19 MiB

Ah, that's a great solution, I totally forgot about shallow clones!

@expenses you're probably better off justcopying the GLSL over into your project, because we're about to delete it in favour of HLSL.

Yep fair enough, I want to switch (back) to HLSL but I'm stuck with GLSL until I can use 8-bit ints, 64-bit atomics and BDA nicely.

from nabla.

devshgraphicsprogramming avatar devshgraphicsprogramming commented on June 14, 2024

@expenses current nice solution would be to do shallow clone, you will reduce the size to 6.19 MiB

Ah, that's a great solution, I totally forgot about shallow clones!

@expenses you're probably better off justcopying the GLSL over into your project, because we're about to delete it in favour of HLSL.

Yep fair enough, I want to switch (back) to HLSL but I'm stuck with GLSL until I can use 8-bit ints, 64-bit atomics and BDA nicely.

8bit is a problem, 64bit work just fine, BDA incoming

from nabla.

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.