react-native-windows icon indicating copy to clipboard operation
react-native-windows copied to clipboard

Adds QuirkSetting for non-batched create view

Open rozele opened this issue 3 years ago • 0 comments

Description

Type of Change

Erase all that don't apply.

  • New feature (non-breaking change which adds functionality)

Why

It possible that creating views as the native method is called on UIManager immediately, rather than waiting for batch completion, may result in content being rendered natively more quickly.

What

It's not immediately clear whether this can cause other issues with interactivity, or whether any context switching penalties will be incurred (because the operations are not run in a loop at the end of a batch). Thus, for now, the functionality is opt-in via a QuirkSetting.

Please note, this should not create any UI tearing, as the operations to mount the created views in the native XAML tree are still only performed on batch completion.

Testing

Added option to Quirk Settings menu in Playground-win32 and ran RNTester, testing various screens. No issues surfaced.

Please note, this has the same code for handling quirk setting changes as in #10590

Microsoft Reviewers: Open in CodeFlow

rozele avatar Sep 19 '22 00:09 rozele