Comments (5)
第2个问题已经修复了, 使用master最新commit, 是因为v0.1.6之后修改CacheManagingDrawTask代码导致的问题
from danmakuflamemaster.
第1个问题, -1是给隐藏弹幕时候用的, 当然没有弹幕的情况也可以这么优化,但是现在的流程并不能精确知道下几百毫秒屏幕上有没有弹幕, 所以这里还要稍微想下怎么减少占用并且又能及时绘制
from danmakuflamemaster.
你好,我我想判断当前屏幕是否有弹幕?有什么方法吗?如果没有,有什么思路吗?我现在没有什么思路。谢谢!
from danmakuflamemaster.
可以尝试以下思路:
- danmakus.subnew(timer.currMillisecond - DanmakuFactory.MAX_DURATION, timer.currMillisecond);
判断size()>0 。
2.给DanmakuRenderer.draw增加返回值,返回实际绘制到屏蔽上的弹幕数量
from danmakuflamemaster.
优化了问题1所说的问题, 现在可以判断当前两屏弹幕是否为空,并且使得绘制线程进入休眠
from danmakuflamemaster.
Related Issues (20)
- 多次进入退出弹幕页面崩溃
- 自定义数据解析器,不显示弹幕,急求,谢谢 HOT 2
- padding可否加上设置左上右下,我看源码只能共用padding,不太灵活
- 使用DanmakuTextureView的实现无法显示弹幕
- #00 pc 00000f9c /data/data/com.liqiang365app.musen/app_p_n/1249074292/libndkbitmap.so (createSkBitmap(ndkbitmap_object_t*, int, int, int)+19) [armeabi-v5te]
- 如何实时修改字体大小,颜色等 HOT 1
- 弹幕底部出现小白点
- DrawHandler cause Choreographer.mDisplayEventReceiver leak
- 空指针了Attempt to invoke virtual method 'void androidx.constraintlayout.solver.widgets.ConstraintWidget.n0()' on a null object reference
- Fuckboy HOT 1
- ViewCacheStuffer 只回调create,不回调bindviewholder
- 横竖屏切换后,弹幕会从头开始滚动且会出现重叠的情况 HOT 1
- 使用DanmakuViewHolder自定义样式会出现偶尔重复,偶尔鬼畜
- 弹幕库不维护了吗?有其他库可以使用吗? HOT 4
- jcenter关闭了 这个库该怎么用 HOT 1
- ViewCacheStuffer运行一段时间后,所有itemView的长度都相等了,itemView会有显示不全的情况
- libndkbitmap.so异常 HOT 1
- 开发者一定以前一定是搞游戏开发的 HOT 1
- 弹幕点击悬停是怎么实现的
- 部分机型点击弹幕没有回调 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from danmakuflamemaster.