Hello, I just started using UE 5.6.1 on Linux, and I noticed that every time I submit a change (Git), even a small one, the editor takes a really long time. Is there anything I can do to speed up this process?
Are you using locks? Locks are really slow on git.
You can also ensure your hard drive is not slowing things down.
git in general is slow. would be good to know what are the actual times you encounter.
Git isn’t “slow" the engine writing 50000 lines for a .uasset that contains less than 50byte of data is the problem. You aren’t getting around that.
Best bet is to not use the engine stuff.
Go with something like githubdesktop if you need a UI.
Check out the repo when you start. Check back in when you are done for the day.
Normally any file you touched gets fully re-written because it’s generally .uassets that the engine packs in binary or hex rather than text files like you do with code, so it takes longer than for a c++ repo where all you submit is line changes and maybe some new files plus removals…
I’ve not tried Editor versioning plugins, but question … do they allow for management of files outside of the game assets? Like design docs, reference material, art source files, etc.
We have always used Windows desktop versioning interfaces because so many files need to be versioned that are not game assets.
I just tried Win11, and it is much, much faster than Linux for doing the same thing.
After a little tweaking, I was able to speed up the process by creating a .gitattributes file with the following content:
*.uasset filter=lfs diff=lfs merge=lfs -text
*.umap filter=lfs diff=lfs merge=lfs -text
*.fbx filter=lfs diff=lfs merge=lfs -text
*.3ds filter=lfs diff=lfs merge=lfs -text
*.psd filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.mp3 filter=lfs diff=lfs merge=lfs -text
*.wav filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
I did sudo apt install git-lfs and then, I executed git lfs install on my Unreal project.
I think this slower speed is related to Linux, since I do not have this issue in Win11.
I hope this gets fixed in future updates.
Is it the same system? Is the partition on the same BUS?
I/O (write/read) can be Drastically different just between SATA and NVMe to the point you would be in pain going back to SATA.
Yes, you can version anything you want that goes into a folder with sub-folders. and the gitattributes like above can help define how you want files to be handled based on file type or even specific files (like .gitignore can let you exclude specific files).
Also, GIT can be LOCAL or NETWORKED - so when people complain about time it’s usually a network issue (they upload changes and it takes a long while).
Yes, it is the exact same machine and my GIT is local
That’s really odd. Look up your smart and run a Defrag, see if that helps. Maybe the drive is failing…
