mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-26 13:25:51 +08:00
Use actual CADisplayLink timestamp for VSYNC
Summary: public Use the actual timestamp provided through `CADisplayLink` instead of the time the handler is called. Reviewed By: jspahrsummers Differential Revision: D2739121 fb-gh-sync-id: 1da28190bb25351dc3dd94efaff21d49279a570f
This commit is contained in:
committed by
facebook-github-bot-9
parent
86bb656e6f
commit
cd4574498d
@@ -943,7 +943,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithBundleURL:(__unused NSURL *)bundleUR
|
||||
[self updateJSDisplayLinkState];
|
||||
|
||||
|
||||
RCTProfileImmediateEvent(0, @"JS Thread Tick", 'g');
|
||||
RCTProfileImmediateEvent(0, @"JS Thread Tick", displayLink.timestamp, 'g');
|
||||
|
||||
RCT_PROFILE_END_EVENT(0, @"objc_call", nil);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user