上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 101 下一页
摘要: CALayer 拥有 mask 属性,Apple 的官方解释如下: An optional layer whose alpha channel is used to mask the layer’s content. The layer’s alpha channel determines how 阅读全文
posted @ 2019-02-01 14:41 zzfx 阅读(641) 评论(0) 推荐(0)
摘要: 数据结构与算法的观点: 数据结构:视图序列; 算法:播放控制; 动画是采用连续播放静止图像的方法产生物体运动的效果。 动画是视图(图像)序列的播放; 动画的内容:图片 包含图片的生成; 图片的处理:合成、光学、几何操作等; 动画的控制:动画的播放控制 播放的基本单元是帧; 播放是将图片序列在时间轴上 阅读全文
posted @ 2019-02-01 13:05 zzfx 阅读(257) 评论(0) 推荐(0)
摘要: A blog about Core Animation and other iOS graphics frameworks. https://www.calayer.com/ 阅读全文
posted @ 2019-01-31 19:32 zzfx 阅读(144) 评论(0) 推荐(0)
摘要: 矢量图、gpu直接使用、占用内存小 What Shape Layers Are Shape layers are layers capable of defining shapes as vectors. Because they’re defined as vectors, they are re 阅读全文
posted @ 2019-01-31 19:30 zzfx 阅读(216) 评论(0) 推荐(0)
摘要: 例如:我们新建一个SubLayer类继承自CALayer,则在SubLayer.m中重写此方法。如下: + (id)defaultValueForKey:(NSString *)key { if ([key isEqualToString:@"backgroundColor"]) { return 阅读全文
posted @ 2019-01-31 18:23 zzfx 阅读(346) 评论(0) 推荐(0)
摘要: Transactions are CoreAnimation's mechanism for batching multiple layer- tree operations into atomic updates to the render tree. Every modification to 阅读全文
posted @ 2019-01-31 17:44 zzfx 阅读(1023) 评论(0) 推荐(0)
摘要: 动画的定义:视图+时间+空间+速度 视图信息的时空变换; 视图组的按时间逐帧展示; Core Animation 类的继承关系图 Core Animation 类的继承关系图 各类常用属性 CAMediaTiming:CALayer和Core Animation都实现了这个协议,它模拟了一个定时系统 阅读全文
posted @ 2019-01-31 16:51 zzfx 阅读(371) 评论(0) 推荐(0)
摘要: 1、语言与系统; 2、架构与机制; 3、性能:cpu、gpu、io、缓存、内存;性能监测工具; 4、知名开源库; 阅读全文
posted @ 2019-01-31 16:37 zzfx 阅读(335) 评论(0) 推荐(0)
摘要: 理解的核心是理清:application、render server、opengl、core animation、gpu、显示器的关系。 本文将从 OpenGL 的角度结合 Apple 官方给出的部分资料,介绍 iOS Rendering Process 的概念及其整个底层渲染管道的各个流程。 相信 阅读全文
posted @ 2019-01-30 21:41 zzfx 阅读(589) 评论(0) 推荐(0)
摘要: Core Animation Pipeline 流水线 在 iOS上,动画和视图的渲染其实是在另外一个进程做的(下面我们叫这个进程 render server),在 iOS 5 以前这个进程叫 SpringBoard,在 iOS 6 之后叫 BackBoard。 显示逻辑 1、CoreAnimati 阅读全文
posted @ 2019-01-30 21:09 zzfx 阅读(1557) 评论(0) 推荐(0)
摘要: - (void)stroke Draws a line along the receiver’s path using the current drawing properties. - (void)fill Paints the region enclosed by the receiver’s 阅读全文
posted @ 2019-01-30 17:21 zzfx 阅读(433) 评论(0) 推荐(0)
摘要: 透明度与图层混合相关,影响到图片绘制的效率。 hidden 此属性为 BOOL 值,用来表示 UIView 是否隐藏。关于隐藏大家都知道就是让 UIView 不显示而已,但是需要注意的是: 当前 UIView 的所有 subview 也会被隐藏,忽略 subview 的 hidden属性。UIVie 阅读全文
posted @ 2019-01-30 14:24 zzfx 阅读(903) 评论(0) 推荐(0)
摘要: So, shouldRasterize will not affect the green/red you see using Instruments. In order to have everything green, you'll need to not use transparency an 阅读全文
posted @ 2019-01-29 17:58 zzfx 阅读(659) 评论(0) 推荐(0)
摘要: Core Animation是对OpenGL ES的Objective-C封装,具有与OpenGL ES几乎等价的高性能,却隐藏了OpenGL ES的复杂性。 https://www.cnblogs.com/feng9exe/p/6723056.html https://www.cnblogs.co 阅读全文
posted @ 2019-01-29 12:37 zzfx 阅读(524) 评论(0) 推荐(0)
摘要: 重开一个环境(内存、资源、上下文)来完成(部分)图片的绘制 指的是GPU在当前屏幕缓冲区以外新开辟一个缓冲区进行渲染操作 意为离屏渲染,指的是GPU在当前屏幕缓冲区以外新开辟一个缓冲区进行渲染操作。 红色代表GPU需要做额外的工作来渲染View,绿色代表GPU无需做额外的工作来处理bitmap。 U 阅读全文
posted @ 2019-01-28 16:45 zzfx 阅读(2352) 评论(0) 推荐(0)
摘要: 渲染是抽象到具体的过程; 抽象:图片信息的描述(比如一条线:两个端点的位置、线粗、颜色等特征); 具体:依据抽象信息得到的可视图片(绘制过程)。 渲染是中文翻译的问题,有种添油加醋的感觉。直意就是交与 呈现的意思。把内存里的图形图像信息以输出设备(显示器)能够识别的格式呈现出来。 引用我上图形学的时 阅读全文
posted @ 2019-01-28 15:05 zzfx 阅读(4126) 评论(0) 推荐(0)
摘要: 变量:输入数据、结果、辅助数据; 计算:逻辑步骤、遍历; 状态:当前的处理环节;上下文切换; 控制:遍历、递归、并发; 数据结构工具: 阅读全文
posted @ 2019-01-26 21:11 zzfx 阅读(417) 评论(0) 推荐(0)
摘要: 卡顿产生的原因和解决方案 在 VSync 信号到来后,系统图形服务会通过 CADisplayLink 等机制通知 App,App 主线程开始在 CPU 中计算显示内容,比如视图的创建、布局计算、图片解码、文本绘制等。随后 CPU 会将计算好的内容提交到 GPU 去,由 GPU 进行变换、合成、渲染。 阅读全文
posted @ 2019-01-25 18:53 zzfx 阅读(670) 评论(0) 推荐(0)
摘要: DTCoreText 、WKWebView 、UIWebView的比较 HTML->View 数据解析: WebCore:排版引擎核心,WebCore包含主要以下模块:Loader, Parser(DOM,Render), Layout,Paint。 是脚本语言,需要逐句解析出来,然而DOM/CSS 阅读全文
posted @ 2019-01-25 16:29 zzfx 阅读(455) 评论(0) 推荐(0)
摘要: tcp的三次握手:通信的本质:通信通知与信息交换 阅读全文
posted @ 2019-01-23 21:39 zzfx 阅读(488) 评论(0) 推荐(0)
上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 101 下一页