-
Notifications
You must be signed in to change notification settings - Fork 22
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
Slow Performance (Intellisense primarily) #362
Comments
That's unfortunate. To figure out the exact cause we'll need some help though. If it's taking a long time to complete an action in your project, it's likely that some part of your codebase triggers a bug in the extension. We'll need a cpu profile session from your project to see what part of the code is causing the performance bottleneck. You can find how to creat one on this page: https://github.com/microsoft/vscode/wiki/Explain-extension-causes-high-cpu-load |
Is this it? |
No sorry, I should have specified. If you follow the gif, they use the load function of the profiler. But that's what we need to do on our end. If you could do the same steps as shown in the gif, but choose the option to make a new profile. When you start a session, vscode will record what the code is doing, so make sure you do the actions that will trigger the slowdown. Then you can stop the session and upload the results. We should then be able to see the parts of the code that take a long time in your project |
I actually did that. The file I sent was the cpuprofile log generated from that. |
Hmm, well the profile you've uploaded doesn't go through any of our source code. It only mentioned Are you sure it is our plugin and not something else? And/or are you sure you triggered the slowdown while you made the cpu profile? See if starting vscode with The old issue here might give you some other things to try: microsoft/vscode#159004 |
Huh... The file I sent was a different kind of recording then. That was straight from the devtools (probably the JS Profiler). |
That one does show different information. I'll have a look after work |
Seems like rolling back to 2.0.16 fixed the slowness issues. Very likely to be a 2.2.x thing. |
Hm, yes alright. That's enough proof then. I'll try to see if I can find the issue/what I can do about it. |
For me it's constantly hangs on "Initializing Ren'Py static data" right after vscode startup. Can sit like that for half an hour easily. And vscode complains about "very slow last operation" from extension. No problems if extension is disabled. |
Ah yes, I was hoping that issue would be fixed with the latest update, but clearly not. Would you be able to figure out what file exactly is causing the issue? It should be one (or more) specific files in your project. If you'd be able to share it with me (privately if necessary), then I can debug the issue and fix it. |
I met the same problem when I was starting VSC. Please help me check. |
Same issue on v2.2.2 and pre-release v2.3.6
extension causes all other extensions to fail. they just hang after "intilization"
ditto Edit: Attaching my cpu profile, unsure of which is the right one-- sorry I'm extremely new at all this. LuqueDaniel.languague-renpy-unresponsive.cpuprofile.txt |
Yep, I can confirm, the extension does not work, stuck on loading renpy static data, and until it is uninstalled it disables intellisense entirely |
Still exists in 2.4.0 |
I've made it 10x faster, so it shouldn't be a problem with slowness anymore. There could still be the issue of it getting stuck though, but we already have #437 for that |
Type: Bug
The Ren'Py VSCode addon has been faulty for a while now, since the last major update (the one that changed some text colors, I believe.)
The biggest harm I've felt is the now-unusably slow IntelliSense autocomplete results, which is lamentable. That is a feature I use constantly, and it's hampering my work-flow.
It also has an "Unresponsive" warning on the 'Running Extensions' window.
Extension version: 2.2.2/2.3.6 (both seem to have the same issue)
VS Code version: Code 1.80.0 (660393deaaa6d1996740ff4880f1bad43768c814, 2023-07-04T15:06:02.407Z)
OS version: Windows_NT x64 10.0.19044
CPU is a Ryzen 7 3800x.
The text was updated successfully, but these errors were encountered: