Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

rustc_codegen_spirv taking a long time processing my (large) shader #851

@hatoo

Description

@hatoo

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

    t: bugSomething isn't working

    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