Repository navigation
perf(mobile): run reorder frames only during a drag - #638
Merged
Merged
Conversation
Custom ordering registered a UI frame callback even with no active gesture. Start it on activation, stop it on finalization or suspension, and reject delayed starts after the drag ends. Fixes: #626
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Selecting Custom thread ordering kept a Reanimated frame callback registered even when no gesture was active. Register frames only during a drag, stop on finalization/suspension/unmount, and check the active row before accepting a queued start.
Fixes: #626
Method: temporary instrumentation outside the repository executes the production hook with mocked native bindings and a simulated frame clock. Counts show callback registration, not native CPU, FPS, React renders, hardware wakeups or battery use. The loop already runs on the UI thread; this change removes its idle registration.
Native profiling is unavailable: T3 reports
Could not communicate with device support. Try refreshing devices.Refreshing once did not restore access. The installed Android app was inDevLauncherErrorActivity, so its CPU/frame data cannot serve as a Canopy baseline. All five requested scenarios (Working list, streaming thread, idle thread, PR panel and two-minute idle list) still lack valid iOS/Android CPU, JS/UI FPS, renders/s, wakeups and measured network rates. This PR does not claim to resolve foreground heating.Validation uses
nice -n 10: install, gen:check, full typecheck, repository lint, format:check, web build, both native JS/Hermes exports (approximately 12 MB each) and the temporary drag/idle probe passed on this independent branch. Full check:tmp also passed on the combined changes: 2,749 passed, 166 skipped, zero failures, and nothing left in the checked temp directory. All CI checks passed at this head. Expo ESLint retains pre-existing findings with no new source file/rule errors. Native visual verification remains blocked by device support. No UI tests, native dependencies, EAS builds, release builds or publication. UI copy is unchanged.This is a JavaScript-only change. Both independent branches retain the native fingerprints under the same local stable config:
74705db3a68907bc28379bb9b1080a227bc0755b7d38be8f5c9bf842d62060c75820a206f99c87e3