mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Restore flags to disable Fabric background executor
Summary: We want to fix the order of execution of layout, layout effects and passive effects in React Native, but the use of the Fabric background executor for layout complicates this (and other things). This brings back a flag to disable this background thread to do layout synchronously in JavaScript, before the execution of layout effects and passive effects. This is expected to regress performance on some screens, so we need to address the antipatterns in those screens before shipping this. Changelog: [internal] Reviewed By: javache Differential Revision: D39727131 fbshipit-source-id: 4323b089234d3304ca3bfe5697668fb44ac64c12
This commit is contained in:
1 parent
065db683a2
commit
30fe6b341b
3 files changed
+11
-5
No files matched your search
@@ -472,8 +472,11 @@ void Binding::installFabricUIManager(
|
||||
toolbox.synchronousEventBeatFactory = synchronousBeatFactory;
|
||||
toolbox.asynchronousEventBeatFactory = asynchronousBeatFactory;
|
||||
|
||||
backgroundExecutor_ = JBackgroundExecutor::create("fabric_bg");
|
||||
toolbox.backgroundExecutor = backgroundExecutor_;
|
||||
if (reactNativeConfig_->getBool(
|
||||
"react_fabric:enable_background_executor_android")) {
|
||||
backgroundExecutor_ = JBackgroundExecutor::create("fabric_bg");
|
||||
toolbox.backgroundExecutor = backgroundExecutor_;
|
||||
}
|
||||
|
||||
animationDriver_ = std::make_shared<LayoutAnimationDriver>(
|
||||
runtimeExecutor, contextContainer, this);
|
||||
|
||||
Reference in new issue
Block a user