-
Hi there, I read your article and I have to tell you that you have saved my day. Everything works ok except one thing: I want to change the video orientation to portrait and I am struggling to find th…
-
- 实现定时器的几种方式
- NSTimer
- NSObject 的 `-performSelector:withObject:afterDelay:`
- GCD
- dispatch_after
- dispatch_source_t
- CADisplayLink
- 使用 mach 内核级的函数可以使用 mach_absolute_tim…
-
## What problem does this solve or what need does it fill?
increasing iOS and macOS game performance whilst saving battery live is a hard task but can be done quite easily, since macOS and iOS usua…
-
Well, at least I learned about a new "Over CPU Budget" label in Instruments!
It looks like the new CA runloop observers are behaving in such a way that calling them triggers a new CATransaction com…
-
Hi there,
I had some code that created a movie composition and played it back in an AVPlayer/AVPlayerItem beautifully. I wanted to add some video processing, so I used GPUImageMovieComposition/GPUIma…
-
复现场景: 创建一个UICollectionView, 一页可显示10个cell, 每个cell中有一个UIImageView, cellForRow代理中为cell中的imageView setImage, (相同的url) gif图片大小大约在3MB左右, 相等于为不同UIImageView同时setImage 10次, 通过回调得知 cacheType为 disk, 此时内存可以飙升300M…
-
```
What steps will reproduce the problem?
1. Create a Cocos2d application that performs some GL draws
2. Call stopAnimation from applicationWillResignActive
3. Run the application and press the Home …
-
I have tried to put an animated image in the Home widget
struct WidgetView: View {
var widgetDoc: SMWidget
var body: some View {
Color(.white)
AnimatedImage(u…
-
-
This problem occurs when loading a single-frame GIF, the rest is unclear...
- didMoveToWindow will be triggered when we switch viewControllers,
but self.layer.contents may be nil, causing the FLAnim…