-
Notifications
You must be signed in to change notification settings - Fork 31
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
lag spikes every few seconds #185
Comments
i can't say there's anything that immediately seems slow, but since the the stact trace does point into the task invocation it's possible that it's making an allocation for each lambda based on the builder's data, so maybe consider making a "trainbuilder" function and calling it instead. again, unsure how JS' internals work and if that would even help there. Restarting the game seems to have fixed the stutter issue, and to be fair i had it on for 2 days before it was an issue. |
@jklw10 if it happens again, maybe try using some of the heap profiling tools. It looks like you use Edge and there is an option to take a snapshot and to do a sampling on allocations for major GC collections. The big culprit for stuff like this in what I assume is a generational collector are objects which live a moderate amount of time since they get cleaned up at more expensive GC stages and it obviously happens pretty frequently compared to stuff that lives for minutes+. |
Allocation sampling just instantly crashes everything, also it's brave but both are chromium based and probably have similar tooling. I can give the save file of my progress but you'd have to still run it un interrupted for 1-2 days to get the hiccups. |
doesn't seem to be a cpu overload since the usage is under 10% for the whole browser. but the console does spout this:
every time said lag spike hits.
not sure which is caused by which though.
The text was updated successfully, but these errors were encountered: