Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 VA very slow when creating new class from Unreal
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Panicq
New Member

France
6 Posts

Posted - Dec 11 2022 :  06:03:36 AM  Show Profile  Reply with Quote
Hey,

I'm new to Visual Assist and I'm wondering why it takes a lot of time to load after creating a new class from Unreal's editor. Indeed, after pressing Reload All in VisualStudio, I'm not getting VA syntax highligting and I have squiggles under Unreal macros for at least 2 to 3 minutes...

Thank you in advance !

feline
Whole Tomato Software

United Kingdom
18721 Posts

Posted - Dec 12 2022 :  04:46:14 AM  Show Profile  Reply with Quote
VA won't apply its syntax highlighting until it has finished parsing the code, so that it understands what should be given what colour. We like to finish parsing, rather than start colouring part way through parsing, only to have to change the colours we apply as we learn more about your symbols.

Unreal Engine is large, so that could be the only problem here. Do you have Unreal Engine support enabled in:

VA Options -> Game Development

if you do, if you look at:

VA Options -> C/C++ Directories

do you have a LARGE list of directories? Basically all of the Unreal Engine sub-directories should be listed in this list, if VA is picking up your UE project correctly. If they are not being listed then VA's UE support won't be working correctly, which will impact the speed of parsing, since it won't be treating UE as a stable library that doesn't need to be re-scanned all of the time.

zen is the art of being at one with the two'ness
Go to Top of Page

Panicq
New Member

France
6 Posts

Posted - Dec 12 2022 :  04:53:35 AM  Show Profile  Reply with Quote
Yes I do have the Unreal Option turned on and also the long list of Directories. I find it strange that this long loading comes only when adding a new class vs loading the whole solution.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18721 Posts

Posted - Dec 12 2022 :  10:44:20 AM  Show Profile  Reply with Quote
Which version of Unreal Engine are you using?

Do you have Visual Studio open when you open the UE Editor and add the new C++ class? I want to take the same steps here, and run some tests, to see how long loading the solution normally takes, and how the timing compares.

zen is the art of being at one with the two'ness
Go to Top of Page

Panicq
New Member

France
6 Posts

Posted - Dec 12 2022 :  10:49:14 AM  Show Profile  Reply with Quote
I'm using Unreal version 5.0.3. I'm creating a class directly from Unreal's edtior (using the Wizzard Tools > New C++ Class) while Visual (2022) is Opened. After few seconds visual will ask to Reload All, and then I wait for 2-4 minutes to get VA working with this new class.

Edited by - Panicq on Dec 12 2022 10:49:42 AM
Go to Top of Page

Panicq
New Member

France
6 Posts

Posted - Jan 09 2023 :  12:56:02 PM  Show Profile  Reply with Quote
Any update on the topic ?
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18721 Posts

Posted - Jan 12 2023 :  11:24:25 AM  Show Profile  Reply with Quote
Apologies for the slow reply.

When you first load Visual Studio and open your Unreal Engine solution, do you get a similar delay before VA starts to apply syntax highlighting? I am seeing a similar sized delay on first opening the solution, and when the solution is changed by adding a new class via the Unreal Engine editor, so I am wondering if you see the same pattern.

The delay seems to be the time taken for VA to finish loading the solution symbols, and checking that nothing major needs to be reparsed before applying syntax highlighting. We do need to either load the symbol list, or determine that the project needs a major reparse before we will know what the symbols are before starting to apply syntax highlighting.

zen is the art of being at one with the two'ness
Go to Top of Page

Panicq
New Member

France
6 Posts

Posted - Jan 14 2023 :  08:43:58 AM  Show Profile  Reply with Quote
It's approximatively the same time yes.. Is there any way to speed the class creation process, as this is very very slow and always breaks my flow when prototyping in unreal. (By the way, I installed Unreal, VS2022 and my project on my NVME, and I have 32Go of ram)

Thanks in advance

Edited by - Panicq on Jan 14 2023 09:00:34 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18721 Posts

Posted - Jan 17 2023 :  10:06:02 AM  Show Profile  Reply with Quote
Do you make several classes in a short space of time? Or is adding classes something that happens more randomly?

Doing a diff on the solution and project files before and after the add class, the UE project file hasn't been changed, but interestingly the "UE4.vcxproj.filters" file has been changed.

Still, given that there is no change in the UE project file, it should not need to be re-checked by VA. It turns out we are already looking into why VA sometimes parses UE more than it needs to, and it looks like this is one of those situations:

case=141251

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000