Residual scroll jank at 120 Hz (suspected Slint event-loop bug) needs per-frame + per-stage timing the logcat ring buffer can't hold. New cargo feature `perf` (default OFF — all sites are cfg-gated, zero overhead when off): - FR: per-frame app-side render cost + frame gap, from the rendering notifier (BeforeRendering/AfterRendering). - STG: event-loop stage costs (wake/timers/events/poll/lastrender) from timestamps instrumented into the pinned vendor copy of i-slint-backend-android-activity (stg.rs; Cargo.toml now depends on it directly + optional under `perf`). - DECODE: per-thumbnail-job cost on the workers. - All lines mirrored to /sdcard/Download/.gallery_perf.log (logcat rotates too fast at ~120 lines/s). Format + reading guide: docs/BUGS/scroll-jank-120hz.md.
115 lines
2.9 KiB
TOML
115 lines
2.9 KiB
TOML
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
|
|
#
|
|
# When uploading crates to the registry Cargo will automatically
|
|
# "normalize" Cargo.toml files for maximal compatibility
|
|
# with all versions of Cargo and also rewrite `path` dependencies
|
|
# to registry (e.g., crates.io) dependencies.
|
|
#
|
|
# If you are reading this file be aware that the original Cargo.toml
|
|
# will likely look very different (and much more reasonable).
|
|
# See Cargo.toml.orig for the original contents.
|
|
|
|
[package]
|
|
edition = "2024"
|
|
rust-version = "1.92"
|
|
name = "i-slint-backend-android-activity"
|
|
version = "1.18.1"
|
|
authors = ["Slint Developers <info@slint.dev>"]
|
|
build = "build.rs"
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = "OpenGL rendering backend for Slint"
|
|
homepage = "https://slint.dev"
|
|
readme = "README.md"
|
|
license = "GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0"
|
|
repository = "https://github.com/slint-ui/slint"
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = [
|
|
"aarch64-linux-android",
|
|
"armv7-linux-androideabi",
|
|
"i686-linux-android",
|
|
"x86_64-linux-android",
|
|
]
|
|
features = [
|
|
"native-activity",
|
|
"aa-06",
|
|
]
|
|
rustdoc-args = ["--generate-link-to-definition"]
|
|
|
|
[features]
|
|
aa-05 = [
|
|
"android-activity-05",
|
|
"ndk-08",
|
|
]
|
|
aa-06 = [
|
|
"android-activity-06",
|
|
"ndk-09",
|
|
]
|
|
game-activity = [
|
|
"android-activity-06?/game-activity",
|
|
"android-activity-05?/game-activity",
|
|
]
|
|
native-activity = [
|
|
"android-activity-06?/native-activity",
|
|
"android-activity-05?/native-activity",
|
|
]
|
|
unstable-wgpu-29 = ["i-slint-renderer-skia/unstable-wgpu-29"]
|
|
unstable-wgpu-30 = ["i-slint-renderer-skia/unstable-wgpu-30"]
|
|
|
|
[lib]
|
|
name = "i_slint_backend_android_activity"
|
|
path = "lib.rs"
|
|
|
|
[build-dependencies.android-build]
|
|
version = "0.1.2"
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies.android-activity-05]
|
|
version = "0.5"
|
|
optional = true
|
|
package = "android-activity"
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies.android-activity-06]
|
|
version = "0.6"
|
|
optional = true
|
|
package = "android-activity"
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies.i-slint-common]
|
|
version = "=1.18.1"
|
|
default-features = false
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies.i-slint-core]
|
|
version = "=1.18.1"
|
|
features = [
|
|
"std",
|
|
"image-decoders",
|
|
"svg",
|
|
]
|
|
default-features = false
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies.i-slint-renderer-skia]
|
|
version = "=1.18.1"
|
|
default-features = false
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies.jni]
|
|
version = "0.22"
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies.ndk-08]
|
|
version = "0.8.0"
|
|
features = ["rwh_06"]
|
|
optional = true
|
|
package = "ndk"
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies.ndk-09]
|
|
version = "0.9.0"
|
|
features = ["rwh_06"]
|
|
optional = true
|
|
default-features = false
|
|
package = "ndk"
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies.raw-window-handle]
|
|
version = "0.6"
|