Skip to content

perf(input,discord): stop inactive input polling, release swipe timers, and avoid Discord RPC thread leaks - #275

Open
Rengwang wants to merge 1 commit into
PlayCover:masterfrom
Rengwang:pr/perf-stop-inactive-input-and-discord-leaks
Open

Rengwang wants to merge 1 commit into
PlayCover:masterfrom
Rengwang:pr/perf-stop-inactive-input-and-discord-leaks

Conversation

@Rengwang

Copy link
Copy Markdown
  • Gate the CADisplayLink queue-drainer and ThumbstickCursorControl polling on foreground application focus and connected controllers (replacing unconditional background monitoring in ControllerFocus.m / ControlMode.swift while preserving upstream keymapping = true default).
  • Create SwipeAction DispatchSourceTimer instances lazily instead of holding perpetually suspended sources.
  • Verify a reachable Discord IPC socket exists before initializing SwordRPC / MultiThreadedEventLoopGroup threads and disconnect on termination (while preserving upstream DiscordActivity.enable = true default).
  • Include lifecycle tests in Tests/check-input-lifecycle.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant