Valve needs to rethink Fossilize
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 18/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- cpp
- 领域
- performance
调研方向
未指定文件、测试或入口点。首先确定 shader-fragment replay 和 cleanup 路径,然后测量报告的 replay 工作负载,包括 691375-fragment 示例。完成标准是就 relevance、cleanup 或 replay 限制达成一致的设计和实现范围,随后验证编译时间和行为得到改善。
由索引模型根据 Issue 内容生成。
描述
I think the amount of data that is being replayed is really excessive and unnecessary. I've been testing out Deadlock lately and the amount of shader pipelines to be compiled is really staggering. I tried to get through it, but it was just to much. I thought of checking the background compile and it felt like it was churning throught these for hours without end in sight. That behaviour is not exclusive to Deadlock, but many popular games have really huge amounts of replayable fragments.
Even after going through it, receiving more fragments with updates, it still takes way to long to validate everything, when you ultimately have almost 700k shader fragments. Most of which are probably duplicates, that only get catched when merging shader binaries.
[2024-09-07 21:48:58] Still replaying 1422450 (99%, 677994/691375).
I believe if it takes you more than 5 minutes to compile most of shader binaries on a decent CPU, then there's something not right with the implementation. Thats usually how PSOs work in many new titles and I think it's a good idea to emulate the behaviour of it. Yes, I know you can skip at any time, but some people will sit down for 30 minutes or even hours on lower end hardware (like this issue https://github.com/ValveSoftware/Fossilize/issues/251) thinking that it will make a difference, when in reality there probably wouldn't be any at this point.
I think Valve needs to rethink how the system works. In my opinion, I believe there needs to be some sort of relevancy system.
- It needs to serve users the most relevant or commonly recorded shaders.
- It needs to perform cleanup of old shader fragments that haven't been used in a while, but only when in the mean time commonly received other fragments. That would make sure we're not discarding fragments just because a game is not popular enough.
I think those options would greatly reduce compile time. Another good idea is to set a timer for 3-5 minutes and automatically kill the replaying job. With an option for the user to allow compilation of all fragments. Then you don't have to care how long it takes to complete. If the relevancy system works, then I believe after 5 minutes, they should be most of the way there anyway. Maybe it would be beneficial to collect stats for how long it takes users to replay shader fragments and perform cleanup based on that.
I personally believe Fossilize is a great system, but most users either:
- skip compilation early on because of how long it took for them before
- disable the feature altogether as a result
- will wait for 30 minutes or an hour+ thinking it has to be done to provide a stutter-less and meaningful difference to the experience.
I'm open to suggestions, but I believe Valve needs to do something for non-Deck users in this regard. I know Valve ships binaries to Deck users and that will not be possible for all configurations. Replay system is great, but it needs improvement to show users it's worth doing.
- 主要语言
- C++
- 星标
- 800
- 派生
- 82
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ValveSoftware/Fossilize 的其他 Issue
-
Repeated shader-processing delays on GTX 970: replay times out at 10 seconds but completes at 60未关闭
难度 5/5 一周以上 新手友好度 35/100
ValveSoftware/Fossilize#318 ·
-
难度 4/5 3-5 天 新手友好度 45/100
ValveSoftware/Fossilize#312 · 10 条评论 · 3 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 35/100
ValveSoftware/Fossilize#306 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 35/100
ValveSoftware/Fossilize#303 · 1 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 45/100
ValveSoftware/Fossilize#300 · 6 条评论 · 4 个 reaction ·
查看 ValveSoftware/Fossilize 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
deepseek-ai/DeepGEMM#529 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
compiler-explorer/compiler-explorer#9710 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
ucb-bar/libgemmini#10 ·
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
`test_controlled_TermSequenceBox_logging` and `test_symbolic_ops` fail when another test runs first未关闭
难度 2/5 1-3 小时 新手友好度 72/100
Quantinuum/tket#2282 ·
维护者通常 1 天内回复