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

(Backlink) Extreme memory usage with MaxMath in Rider #9

Open
CodeSmile-0000011110110111 opened this issue Sep 1, 2022 · 3 comments
Labels
wontfix This will not be worked on

Comments

@CodeSmile-0000011110110111

Link to Youtrack issue

No action needed.
I thought I'll post this here for reference in case another Rider user runs into this high memory usage issue. For the time being I removed MaxMath from my project. Specifically the file Impl.cs seems to be where Rider analysis got stuck.

@MrUnbelievable92 MrUnbelievable92 added the wontfix This will not be worked on label Sep 2, 2022
@MrUnbelievable92
Copy link
Owner

MrUnbelievable92 commented Sep 2, 2022

Interesting, thank you.
Impl.cs is almost 6.000 lines of code, which is not a lot when compared to some 4-element vector types.
It might be a hickup with ReSharper detecting that the default case of a switch statement on a byte with all 256 cases being covered is unreachable, although omitting it would result in a syntax error, unfortunately.

Once some issues are resolved, I will distribute a DLL alongside the source code with each release, which will probably do the trick for rider users (maybe try that one?) ;)

@van800
Copy link

van800 commented Sep 16, 2022

@MrUnbelievable92 Please consider suggesting to use this package from github instead of suggesting to use "Local package" in the read.me.

Link those packages from github in the manifest.json:

    "maxmath":"https://github.com/MrUnbelievable92/MaxMath.git",
    "csharpdevtools":"https://github.com/MrUnbelievable92/C-Sharp-Dev-Tools.git",

https://youtrack.jetbrains.com/issue/RSRP-489925/Extremely-high-memory-usage-of-RiderBackend-in-Unity-project-with-MaxMath-package-installed#focus=Comments-27-6447641.0-0

@chadefranklin
Copy link
Contributor

chadefranklin commented Oct 3, 2022

I've been having cpu usage issues ever since using maxmath in Visual Studio. No idea the cause but I'll update if I do find anything useful.
Edit:
Watching task manager I see VS shoot up to 70%+ CPU usage with ServiceHub.RoslynCodeAnalysisService.exe being the subprocess taking the most of it. It seems to only be an issue when working inside the maxmath assembly (and yeah, opening Impl.cs caused VS to crash).

@MrUnbelievable92 MrUnbelievable92 pinned this issue Oct 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants