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

Completion Extremely Slow #170

Open
slacksystem opened this issue Jan 23, 2023 · 12 comments
Open

Completion Extremely Slow #170

slacksystem opened this issue Jan 23, 2023 · 12 comments
Assignees
Labels
bug Something isn't working

Comments

@slacksystem
Copy link

slacksystem commented Jan 23, 2023

Describe the bug
The completion functionality takes at least ten seconds and the errors seem to only track the symbols at a speed of like one letter per second

To Reproduce
Start typing code and either wait for completion or press Ctrl-Space

I tried the pre-release version as well and had the same issue. It's certainly possible it's an issue with my config or something, especially since I didn't see this issue already posted, but I would like to figure out how to use the extension's functionality regardless. If there's any other information I could provide that would help diagnose I'm happy to do so

EDIT: I also looked at my task manager during a completion and saw the process DarkId.Papyrus.Host.Skyrim.exe using about 15% of my Intel i7-9700K CPU @ 3.60GHz. Dunno if that's normal or not but I figured extra info can't hurt

@slacksystem slacksystem added the bug Something isn't working label Jan 23, 2023
@BellCubeDev
Copy link
Contributor

I've experienced the same issue, but only under certain circumstances. The main driver seems to be the size of the script at hand and the random read speed of the drive the scripts are on.

@slacksystem
Copy link
Author

Hmm I don't know about my random read speed, but this is a hefty script with a few includes. Is it just too large to use completion? Or is this a bug that is fixable. I understand every tool has its limits I just don't know what's feasible and what isn't.

@joelday
Copy link
Owner

joelday commented Jan 27, 2023

It's difficult to know why it's particularly bad because there are limitations on what profiling code I can add. We can probably narrow it down to individual files, at least. I suppose it could involve how many different files you've looked at in a session. I'll look into it because it shouldn't be that terrible.

@slacksystem
Copy link
Author

Ok let me know what if anything I can do to help

@nikitalita
Copy link
Collaborator

At the absolute minimum, we're going to need the full project you're developing. Please give us a link or upload it somewhere.

@slacksystem
Copy link
Author

Here is the most recent project I've been working on that I had the issue. It's pretty big and so is UIExtensions, the import

https://github.com/slacksystem/where-are-you

@slacksystem
Copy link
Author

slacksystem commented Jan 28, 2023

Also happened with this fairly basic project. Inside one of the events I tried to add Debug. and hit Ctrl-Space for completions and it took 20-ish seconds for them to come up.

@skyler3d
Copy link

I've observed this too. With a two line script, but any script has it happen.

@skyler3d
Copy link

@slacksystem are you running the CK out of MO2 by chance? I tried running it in MO2, its slow as heck. Ran it outside of MO2 and the autocomplete runs like a top.

@slacksystem
Copy link
Author

@slacksystem are you running the CK out of MO2 by chance? I tried running it in MO2, its slow as heck. Ran it outside of MO2 and the autocomplete runs like a top.
I may have been I'm not sure, I haven't really modded skyrim in a while. This is reminding me I should probably check on my mods on nexus. Thank you very much for the suggestion though!

@skyler3d
Copy link

@joelday have you tried it using MO2 out of curiosity?

@joelday
Copy link
Owner

joelday commented Sep 27, 2023

@skyler3d I haven't, but we're working on integrating a different compiler right now, which will greatly improve performance, so, the only area to attempt to address this will be replaced soon anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants