mirror of
https://github.com/status-im/react-native.git
synced 2025-02-26 16:10:58 +00:00
[react-native] dispatch perf updates to main thread
This commit is contained in:
parent
1ed2542b46
commit
570597c4ac
@ -1555,7 +1555,9 @@ RCT_INNER_BRIDGE_ONLY(_invokeAndProcessModule:(NSString *)module method:(NSStrin
|
||||
|
||||
RCTProfileEndEvent(@"DispatchFrameUpdate", @"objc_call", nil);
|
||||
|
||||
[self.perfStats.jsGraph tick:displayLink.timestamp];
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[self.perfStats.jsGraph tick:displayLink.timestamp];
|
||||
});
|
||||
}
|
||||
|
||||
- (void)_mainThreadUpdate:(CADisplayLink *)displayLink
|
||||
|
Loading…
x
Reference in New Issue
Block a user