Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laggy chart - AudioInspector FFT #1

Closed
iarata opened this issue Jul 24, 2021 · 1 comment
Closed

Laggy chart - AudioInspector FFT #1

iarata opened this issue Jul 24, 2021 · 1 comment
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@iarata
Copy link
Owner

iarata commented Jul 24, 2021

The charts get laggy and CPU usage gets maximized.
Stackoverflow: https://stackoverflow.com/questions/68501790/swiftui-cpu-high-usage-on-real-time-foreach-view-updating-macos/

@iarata iarata self-assigned this Jul 24, 2021
@iarata iarata added bug Something isn't working help wanted Extra attention is needed labels Jul 24, 2021
@iarata iarata pinned this issue Jul 24, 2021
@iarata iarata changed the title [Bug] Laggy chart - AudioInspector FFT Laggy chart - AudioInspector FFT Jul 24, 2021
@iarata
Copy link
Owner Author

iarata commented Jul 26, 2021

The reason for the problem was due to using DispatchQueue.
It has been replaced by making a Timer() instance with interval of 1 for checking updates

@iarata iarata closed this as completed Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant