objective-c - GCD 和 for 循环

标签 objective-c ios for-loop grand-central-dispatch glkit

我想知道使用 for 循环和使用 GCD 的 dispatch_apply 函数有什么区别,但在文档和此处的问题中找不到答案。

此外,在运行时情况下使用 GCD 函数作为 GLKit 渲染/更新方法会产生更好的结果吗?

最佳答案

Also, will using the GCD function in a runtime situation as a GLKit render/update method will produce better results?

回答该问题的唯一方法是尝试并衡量性能。

关于objective-c - GCD 和 for 循环,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10330275/

相关文章:

objective-c - 如何在 Spritekit 中随机化球的起始方向?

python - 如何计算Python中列表成对比较的元素频率?

Julia 中 for 循环的性能

iphone - 点击时 UIScrollview 向下滚动

ios - 如何将 UIViewController 呈现为局部 View ?

android - 服务器端Swift : basic Client-Server communication example for iOS and Android

Python3 - 而 ids > 停止 : TypeError: unorderable types: str()> int()

ios - 创建协议(protocol)时找不到 'UIViewController' 的协议(protocol)声明

iphone - 手势识别星级评定系统

objective-c - @[] 和 [NSArray arrayWithObjects :] 之间的区别