Advertisement Jump to content
too_many_stars

Exceptionally large file size problem on Windows/VS2017

Recommended Posts

Hello Everyone,

I have a problem that I can't figure out. It's on Windows 10 and Visual studio 2017.

I have a project folder called E2D_S tha1389577067_projectsize.jpg.281b050492462b371f5c3c99ae787c76.jpgt has a ridiculous size of 5.01GB. All the *.h and *.cpp files plus a few images don't add up to this amount.

When I drill into the folder and compare that with the size of what's inside the E2D_S folder, the size becomes a more reasonable 216MB.

Does anyone have any clue what's going on here?

Thanks so much for the help,

Mike

201168580_Insideproject.jpg.4ade19c2290b0993b8f074292befd960.jpg

Share this post


Link to post
Share on other sites
Advertisement

VS2017 spawns a hidden .vs directory that might contain cached data. The same is true if you have a code versioning system like SVN or Git installed and your directory is flagged as repo

Share this post


Link to post
Share on other sites

I had something similar. In my case, the extra gigabytes belonged to .ipch files - precompiled headers used for IntelliSense. They were in a hidden folder. I'm pretty sure they don't need to be that large, and deleting them should cause Visual Studio to regenerate them the next time you open the project, they may end up being smaller.

Share this post


Link to post
Share on other sites

Thanks for the response guys. That makes sense.

I never had anything similar happen on VS2012 but then again that version did not have IntelliSense (as far as I know).

Mike

Share this post


Link to post
Share on other sites

The 2012 Version stored those into a file in user space. Vs2015 started to create those hidden .vs directories to place cached things in first

Share this post


Link to post
Share on other sites

You should turn on the 'show hidden folders' (and turn off the 'hide known file extensions' one too).

There's literally no reason not to and it avoid many silly situations situations like this one.

If you ever (by accident) open a directory in VS using the context menu this hidden .vs folder will be made too, even if you instantly quit VS.

Git on Windows creates .git folder and marks them as hidden in explorer too.

There are also tools that can summarize contents of disk or folder by sizes, file types, etc. for you if you're ever confused what's taking up space on your disk or in some folder. I use WinDirStat because it's FOSS and I'm used to its looks but there are many newer ones that work the same but much faster by reading the NTFS master file table.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!