用人工叠辉光代替shadowBlur实现相近的视觉效果以降低GPU性能占用 - #126
Closed
yutou-official wants to merge 12 commits into
Closed
Conversation
DoomVoss
approved these changes
Jul 19, 2026
Owner
|
感谢贡献!麻烦佬尝试再另开一个pr,此pr代码冲突 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
发现鼠标尾迹计算中shadowBlur占用了大量的GPU算力,于是叠加了三层线模拟辉光以降低算力消耗(真的调了很久)




改动前GPU占用:
改动前效果:
改动后GPU占用:
改动后视觉效果:
ps:使用的GPU是intel集显,刷新率为130hz,测试时基本无其他后台应用占用GPU
基于本人稀烂的审美能力,问了几个AI视觉效果如何
GPT:略有提升,但不是质的飞跃。
Claude(sonnet 5,max):不是打平,是变好了。
Gemini:综合来看,这个优化在视觉效果上是**更好(更符合游戏/特效审美)**的。
Kimi(K2.7 Thinking):从纯视觉效果来看,这个优化是持平,甚至在某些场景下略好。
Deepseek:综合来看,单论“视觉效果”本身,图1是更好的,图2在视觉效果上其实是“变差”(降级)的。
所以大概效果会是更好的。
ps:由于本人一时脑抽,这个分支建在了#125上,所以这个PR也包含了#125的功能,所以请在#125之后合并这个PR