使用Xcode View Hierarchy等阻碍主线程渲染的工具或代码会使Metal渲染卡顿或黑屏#87
Open
CloudlessMoon wants to merge 1 commit intodebugly:developfrom
Open
使用Xcode View Hierarchy等阻碍主线程渲染的工具或代码会使Metal渲染卡顿或黑屏#87CloudlessMoon wants to merge 1 commit intodebugly:developfrom
CloudlessMoon wants to merge 1 commit intodebugly:developfrom
Conversation
Owner
|
这次提交是想优化做动画等其他改变渲染view尺寸导致metal闪一帧粉红色画面的问题,比如你曾经提的 #66 里的视频 |
Contributor
Author
没看出来,可能只有一帧,不太好识别。 目前不仅是Xcode View Hierarchy存在此问题,lookin等也会,比较奇怪。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
复现步骤:

① 运行iOS FSPlayerDemo
② 在主页使用Xcode View Hierarchy调试工具,如下图所示:
③ 关闭Xcode View Hierarchy,进入FSPlayer播放页面即可复现,此时画面大概率黑屏或者卡顿,在App运行期间内都会这样,除非重启App
④
[commandBuffer presentDrawable:drawable atTime:currentAttach.presentationTime]更换为[commandBuffer presentDrawable:drawable];能解决此问题,但尚未研究原因Tips:真机和模拟器均可以复现,但建议使用真机调试