Skip to content
Discussion options

You must be logged in to vote

是的,可以的。我是按照轻量的贪心算法的思路来设计的,每条弹幕最多扫描一次所有轨道。但是实际实现上也需要考虑很多边界条件,比如说 #42 这个就是少了排序和明确的 fallback 边界。
要实时在线处理的话,我想可能需要再考虑一段极小时间的缓冲来屏蔽网络抖动造成的乱序到达,以及在大量弹幕的情况下可能需要考虑合并类似于 ×N 或者根据优先级而丢弃了。

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zuokangjia
Comment options

zuokangjia Sep 4, 2026
Collaborator Author

Answer selected by zuokangjia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants