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

底层实现的效率提升方向 #4

Open
hozuki opened this issue Aug 22, 2016 · 1 comment
Open

底层实现的效率提升方向 #4

hozuki opened this issue Aug 22, 2016 · 1 comment

Comments

@hozuki
Copy link
Owner

hozuki commented Aug 22, 2016

之前的想法有问题。WebGL适合做图形渲染,DOM适合做文字渲染,为什么要把所有东西都放到WebGL上呢?

  1. 大多数用户看到的是普通弹幕;
  2. 底层使用的 GLantern 有一定的文字渲染能力;
  3. 目前的弹幕层是独立的。

那么,只需要普通弹幕和mode7都由CSS实现,脚本弹幕由WebGL实现不就行了?这样既可以在大多数情况下收获良好的视觉效果(WebGL的文字渲染简直糟糕),又可以兼顾脚本对API的调用,所以是更好的方式。没有必要追求纯粹的WebGL。

@xqq
Copy link

xqq commented Aug 22, 2016

WebGL的文字渲染简直糟糕... +1

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

2 participants