Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Make some asset loading functions monomorphic #1861

Closed
wants to merge 1 commit into from

Commits on Apr 10, 2021

  1. Make some asset loading functions monomorphic

    This reduces the size of executables when using bevy as dylib by
    ensuring that they get codegened in bevy_assets instead of the game
    itself. This by extension avoids pulling in parts of bevy_tasks and
    async_task.
    
    Before this change the breakout example was 923k big after this change
    it is only 775k big for cg_clif. For cg_llvm in release mode breakout
    shrinks from 356k to 316k. For cg_llvm in debug mode breakout shrinks
    from 3814k to 3057k.
    bjorn3 committed Apr 10, 2021
    Configuration menu
    Copy the full SHA
    8592b86 View commit details
    Browse the repository at this point in the history