Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

estimatedFinishTimeForCurrentAttributes计算遗漏时间间隔 #2

Open
ZH3057 opened this issue Jun 30, 2021 · 2 comments
Open

estimatedFinishTimeForCurrentAttributes计算遗漏时间间隔 #2

ZH3057 opened this issue Jun 30, 2021 · 2 comments

Comments

@ZH3057
Copy link

ZH3057 commented Jun 30, 2021

image
这块逻辑代码是否补充上,严谨一些,使用最空闲策略时避免弹幕重叠

@taojeff
Copy link

taojeff commented Aug 23, 2022

@ZH3057 你的意思是想要这样写?
image

@LevisonNN
Copy link
Owner

return MAX(self.candidateAttributes.trackTime, self.lastAttributes.totalAliveTime - self.lastAttributes.currentAliveTime + self.spaceTimeInterval) + self.candidateAttributes.danmakuTime;
目前这个状态是正确的,缺失的timeSpacing已经补充了。判断条件的话不用改,有lastAttributes说明轨道上存在弹幕,没有lastAttributes的话,轨道上就没有弹幕了,所以时间是0。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants