Skip to content

Commit ceb37c5

Browse files
authored
Merge pull request #20635 from unoplatform/mergify/bp/release/stable/6.0/pr-20619
docs: Add `DebugSettings.EnableFrameRateCounter` and `CompositionTarget.FrameRate` (backport #20619)
2 parents 5507fb9 + e3a00b4 commit ceb37c5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/articles/Uno-UI-Performance.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,14 @@ Here's what to look for:
149149

150150
- Use [String Resource Trimming](xref:Uno.Features.StringResourceTrimming) to improve package size and startup time
151151

152+
## Skia Targets Specifics
153+
154+
- On Desktop targets, it's possible to change the composition refresh rate using `FeatureConfiguration.CompositionTarget.FrameRate`. The default value is 60 (frames per second).
155+
- On all targets:
156+
- It's possible to set `DebugSettings.EnableFrameRateCounter` in `App.OnLaunched` in order to view a top-left indicator. It indicates the current frames per second, as well as the time spent rendering a composition frame, in milliseconds.
157+
- If the indicator does not change, this means that the UI is not refreshing.
158+
- If it is, but nothing is changing visually, it could be that a XAML or Composition animation is still running, see the `ProgressRing` section in this document.
159+
152160
## Advanced performance Tracing
153161

154162
### Profiling applications

0 commit comments

Comments
 (0)