Skip to content

Bugfix 错误修正和性能提升

Choose a tag to compare

@jabbany jabbany released this 26 Sep 21:46
· 217 commits to master since this release

Fixes bug in CommentSpaceAllocator of returning undefined when we enter a second danmaku layer. Enforce GPU rendering by forcing each comment onto a composite layer.

Submitted to npm & bower.

修正前一版空间规划模块的BUG,this.setY 在一些情况下不返回(因为忘记了return),这样应该能解决第二弹幕层以上弹幕都会跑到第0行的BUG。(以前竟然一直不知道问题在哪)

CSS上现在强制进行GPU加速(如果支持)。