Skip to content

[Migrated] rustc_codegen_spirv taking a long time processing my (large) shader #113

@rust-gpu-bot

Description

@rust-gpu-bot

Issue automatically imported from old repo: EmbarkStudios/rust-gpu#851
Old labels: t: bug
Originally creatd by hatoo on 2022-02-17T21:44:07Z 👍: 1


This issue is from Discord conversation https://discordapp.com/channels/750717012564770887/750717499737243679/943879544006381638

Expected Behaviour

I want to compile my shader faster.

Example & Steps To Reproduce

  1. clone my repo https://github.com/hatoo/rene
  2. cargo build --release -Z timings
  3. See compile duration

I tested on af3cf2b74e8ef4f4bd98a3cd2cda64b9379d20d7.

Completed rene v0.1.0 build script (run) in 263.2s

In console in VSCode and rust-analyzer plugin. It takes more time.

Completed rene v0.1.0 build script (run) in 407.3s

System Info

  • Rust: rustc 1.60.0-nightly (1bd4fdc94 2022-01-12)
  • OS: Windows 11
  • CPU: 3950X
  • GPU: RTX2080ti
  • SPIR-V: SPIRV-Tools v2021.4-dev v2021.3-86-g21e3f681

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions