Skip to content

Conversation

@RoeKun
Copy link
Collaborator

@RoeKun RoeKun commented Jan 6, 2026

feat: iOS TurboDisplay optimize realize

@RoeKun RoeKun requested review from luoyibu and ruifanyuan January 6, 2026 04:08
@RoeKun RoeKun requested review from hidawei, iPel and wwwcg as code owners January 6, 2026 04:08
@RoeKun RoeKun force-pushed the personal/valo_ios_ohos_TurboDisplay_optimize branch from c61dca5 to 04159e0 Compare January 13, 2026 11:03
@RoeKun RoeKun closed this Jan 14, 2026
@RoeKun RoeKun reopened this Jan 14, 2026
newNodeTree:newNodeTree
diffPolicy:KRRealFirstScreenDiffEventReplay];

// 第二次diff-view - 阶段2:在 Kuikly 线程队列末尾添加任务,等待跨端侧渲染指令全部到达后执行延迟渲染
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

异步任务执行前,能确认跨端侧渲染指令全部到达了吗

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

目前已验证,回放事件所产生的渲染指令在diff之前全部到达端侧


- (NSString *)extraCacheKeyFromMainCacheKey:(NSString *)mainCacheKey {
// kuikly_turbo_display_9xxx.data -> kuikly_turbo_display_extra_xxx.json
NSString *hash = [mainCacheKey stringByReplacingOccurrencesOfString:@"kuikly_turbo_display_9" withString:@""];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议kuikly_turbo_display_9提为公共串常量,在mainCacheKey生成的地方也使用,这样可以避免它将来变化后这里不再匹配

@interface KRTurboDisplayConfig : NSObject

/** @brief Diff-DOM 模式 默认为 KRDiffDOMModeStructureAware(新模式,支持结构变化)*/
@property (nonatomic, assign) KRDiffDOMMode diffDOMMode;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

config创建后还允许修改的吗?
如果成员在过程中发生改变会如何?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已通过修改BaseDelegator中turboDisplayConfig方法,像框架返回的是业务定义的config实例的深拷贝副本,业务无法再对框架内的实例发生修改。

@RoeKun RoeKun force-pushed the personal/valo_ios_ohos_TurboDisplay_optimize branch from 00e03b0 to f4e31bb Compare January 16, 2026 13:43
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

Successfully merging this pull request may close these issues.

2 participants