Skip to content

Commit cb70f4f

Browse files
jeromelabanDevTKSS
authored andcommitted
Merge pull request unoplatform#20619 from unoplatform/dev/jela/composition-test
docs: Add `DebugSettings.EnableFrameRateCounter` and `CompositionTarget.FrameRate`
2 parents 015ab89 + 82a53d9 commit cb70f4f

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)