Skip to content

fixed ram increase bug and increase some function#278

Open
lydd2024 wants to merge 18 commits into
gao-sun:masterfrom
lydd2024:master
Open

fixed ram increase bug and increase some function#278
lydd2024 wants to merge 18 commits into
gao-sun:masterfrom
lydd2024:master

Conversation

@lydd2024
Copy link
Copy Markdown

image

luyi and others added 18 commits February 27, 2026 20:27
- Add AppleSiliconSensors.swift for reading temperature via IOHID API
- Use PMU tdie sensors for CPU/GPU temperature on Apple Silicon Macs
- Skip SMC calls on arm64 to avoid assertion failures
- Disable SwiftFormat build script for compatibility
- Display individual core usage with progress bars
- Show P-core (blue) and E-core (green) labels on Apple Silicon
- Add per-core temperature from PMU tdie sensors
- Calculate real-time usage from CPU tick deltas
- Add localization for cpu.cores
- Add resolvedDeviceId for Apple Silicon GPUs without device-id
- Use IOAccelerator PerformanceStatistics for GPU usage
- Fallback to AppleSiliconSensors for GPU temperature
- Display GPU core count in menu view
- Match Apple Silicon GPUs by prefix instead of PCI ID
- NetworkTopStore: clear stale PID data periodically and on stop
- TopStore: properly wait for process termination before cleanup
- Shell: fix race condition in process termination handling
…upport

- Convert to failable initializer pattern to avoid crashes on missing symbols
- Use Unmanaged.takeRetainedValue() for CF Copy APIs to fix ownership
- Add throttling (minReadInterval) and caching (cachedReadings) to reduce allocations
- Add bounded eventBuffer (capacity 256) for future event-driven mode
- Add dlsym bindings for IOHIDEventSystemClientScheduleWithRunLoop and
  IOHIDEventSystemClientRegisterEventCallback (disabled by default due to ABI risk)
- Maintain existing API compatibility (shared?, getAllTemperatures(),
  cpuTemperature/gpuTemperature/socTemperature)
- Replace unsafeBitCast with safe pointer handling to fix optimized build crash
- Add @State to cache computed Path, only recompute when points change
- This fixes memory leak from SKKeyframeSequence and map arrays
  accumulating on every SwiftUI body recomputation
…ng view update

- Wrap NotificationCenter posts, store updates, and view state mutations in DispatchQueue.main.async
- Remove unnecessary @State firstAppear in ProgressBarView
- Add defensive checks in StableWidth to avoid redundant updates
@github-actions github-actions Bot added the needs review PR needs review label Apr 23, 2026
@lydd2024
Copy link
Copy Markdown
Author

image ui changed

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

Labels

needs review PR needs review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants