Low performance of shader compilation
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.8k
- Forks
- 1.2k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 49
Description
Release Type: Official Release
Version: 3.0.0.4
Platform(s): Windows
Describe the bug
Poor performance/very sow shader compilation
To Reproduce
Steps to reproduce the behavior:
- Run any scene (Top Down RPG) without shaders precompiled
Expected behavior
Ability to be absolutely sure that game will run on max performance; i.e. precompile shaders before game is run.
Additional context
i5 4core 3.5ghz; 16gb ram will freeze for up to 10 seconds when compiling new shaders. I can't imagine orcing my future player to even wait >0.1s when I missed some shader. It would require me to walk everywhere in game and HOPE that I've walked everywhere...
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the freeze on Windows with the Top Down RPG scene, running it without precompiled shaders and observing compilation time on the reported hardware. The issue names no source file or test; done should mean shader compilation no longer causes the reported long freeze and that shaders can be prepared before gameplay begins.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- game-dev, performance
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100