Kotlin
A concise multiplatform language developed by JetBrains
帮助我们提高 Compose Multiplatform 应用的性能
Compose Multiplatform 应用的性能是 JetBrains 的主要优先事项之一。 性能改进包括优化启动时间、渲染性能和二进制文件大小等。
目前,我们专注于增强渲染性能并在 iOS 上提供流畅、无故障和无卡顿的动画。 我们的目标是确保所有 Compose 应用在 iOS 上都能像原生 iOS App 和 Android 应用一样顺畅运行。 我们刚刚在 Compose Multiplatform 1.5.0 预览版中发布了多项性能改进,包括新型 120Hz Apple 设备上更好的渲染性能和 iOS 式滚动。 我们需要您的反馈,让这个强大的 UI 框架变得更好!
除了更好的性能之外,这个版本的 Compose Multiplatform 还带来了其他增强功能,例如:
- 对
WindowInsets
API 中 iOS 特定嵌入的支持,可以在通用代码中使用。 - 在通用代码中创建
Dialog
和Popup
可组合对象。 - 对“动态字体”功能的支持,允许在 Apple 操作系统的全局设置中选择可见文本的大小。
我们希望您能在以 iOS 为目标的项目中测试 1.5.0-beta01
并分享仍然存在的性能问题的信息。
为什么您的帮助至关重要
我们的示例应用数量非常有限,且不能涵盖所有现实用例。 因此,您的帮助非常重要,将让我们的技术能够满足您的项目的真实性能期望,而不仅仅是一些泛用基准。
如何更新到 Compose Multiplatform 1.5.0-beta01
在项目的 build.gradle.kts
中,将 org.jetbrains.compose
的版本更新到 1.5.0-beta01
并加载 Gradle 更改。
什么是性能问题
如果您发现 Compose Multiplatform 应用在 iOS 上的表现与 Android 上或原生 iOS App 不同,请报告问题,即使您认为问题很小。 每个问题对我们来说都有意义!
如何报告性能问题
请使用以下模板报告 GitHub 问题,帮助我们有效解决您遇到的问题。
详细了解 Compose Multiplatform
- Compose Multiplatform 1.5.0-beta01 更改日志
- Compose Multiplatform for iOS 现已进入 Alpha 阶段
- Compose Multiplatform 概览
本博文英文原作者:
Subscribe to Kotlin Blog updates
Discover more
Help Us Improve the Performance of Your Compose Multiplatform Apps
The performance of Compose Multiplatform apps is one of our key priorities at JetBrains. Improving performance includes optimizing start-up time, rendering performance, and binary size, among other things.
Currently, we’re focusing on enhancing rendering performance and providing smooth, glitchless, and jank-free animation on iOS. Our goal is to ensure that all different Compose apps work on iOS as smoothly as native iOS apps and Android apps. We’ve just released a number of performance improvements in the preview version of Compose Multiplatform 1.5.0, including improved rendering performance on modern 120Hz Apple devices and iOS-like scrolling. We need your feedback in order to keep making this already powerful UI framework even better!
In addition to better performance, this version of Compose Multiplatform also brings other functional enhancements that you may want to try, such as:
- Support for iOS-specific insets in the
WindowInsets
API, which can be used from common code. - The ability to create
Dialog
andPopup
composables in common code. - Support for the Dynamic Type feature that allows choosing the size of visible text in the global settings of Apple operating systems.
We would appreciate it if you could test 1.5.0-beta01
in your projects targeting iOS and share information about any performance issues that still exist.
Why your help is crucial
We have only a very limited number of sample apps, and they don’t cover all real-life cases. As a result, your help is extremely important and will allow us to make sure the technology meets the true performance expectations of your projects, as opposed to just meeting some generic benchmarks.
How to update to Compose Multiplatform 1.5.0-beta01
In the build.gradle.kts
of your project, update the version of org.jetbrains.compose
to 1.5.0-beta01
and load the Gradle changes.
What is a performance issue
If you notice that a Compose Multiplatform app doesn’t perform on iOS as it does on Android or as if it was a native iOS app, please report the issue, even if you consider it minor. Every issue matters to us!
How to report a performance issue
To help us effectively resolve the issue you encountered, please report a GitHub issue using the template below.
Learn more about Compose Multiplatform
- Compose Multiplatform 1.5.0-beta01 changelog
- Compose Multiplatform for iOS in Alpha
- Compose Multiplatform overview