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

DanmakuTextureView seek后会有弹幕加速问题 #66

Closed
ctiao opened this issue Jan 31, 2015 · 4 comments
Closed

DanmakuTextureView seek后会有弹幕加速问题 #66

ctiao opened this issue Jan 31, 2015 · 4 comments
Assignees
Labels

Comments

@ctiao
Copy link
Member

ctiao commented Jan 31, 2015

DanmakuSurfaceView无此问题, 应该是DrawHandler调整timer的更新出了问题

@ctiao ctiao self-assigned this Jan 31, 2015
@kmfish
Copy link
Contributor

kmfish commented Feb 5, 2015

In DrawHandler.java:
原因:线程退出的判断条件 isInterrupted(), 会在thread 抛出InterruptedException 后重新置为false,而这个while 里的代码可能会抛出该exception(waitRendering里 wait),之前的代码在内部捕获了该异常,然后代码继续往下走,进行下一次循环判断, 此时 isInterrupted() == false了,所以线程并未退出,导致了该bug。

@ctiao
Copy link
Member Author

ctiao commented Feb 5, 2015

谢谢,我修改下

@ctiao
Copy link
Member Author

ctiao commented Feb 5, 2015

ctiao@06f5556
已修复

@ctiao ctiao closed this as completed Feb 5, 2015
@ctiao ctiao added the bug label Feb 5, 2015
@yrom
Copy link
Member

yrom commented Feb 7, 2015

ctiao/DanmakuFlameMaster#65

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

No branches or pull requests

3 participants