x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Actor Deletion in large level slow

Hi there, We are editing a fairly large level, and deleting actors has become a painful operation with many operations taking up to 10s. The main culprit seems to be looking for soft references in the following callstack:

    FAssetRenameManager::CheckPackageForSoftObjectReferences(UPackage * Package, const TMap<FSoftObjectPath,FSoftObjectPath,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FSoftObjectPath,FSoftObjectPath,0> > & AssetRedirectorMap, TArray<UObject *,FDefaultAllocator> & OutReferencingObjects) Line 1004
 FAssetRenameManager::LoadReferencingPackages(TArray<FAssetRenameDataWithReferencers,FDefaultAllocator> & AssetsToRename, bool bLoadAllPackages, bool bCheckStatus, TArray<UPackage *,FDefaultAllocator> & OutReferencingPackagesToSave, TArray<UObject *,FDefaultAllocator> & OutSoftReferencingObjects) Line 632
 FAssetRenameManager::FindSoftReferencesToObject(FSoftObjectPath TargetObject, TArray<UObject *,FDefaultAllocator> & ReferencingObjects) Line 248
 UAssetToolsImpl::FindSoftReferencesToObject(FSoftObjectPath TargetObject, TArray<UObject *,FDefaultAllocator> & ReferencingObjects) Line 635
 UUnrealEdEngine::edactDeleteSelected(UWorld * InWorld, bool bVerifyDeletionCanHappen, bool bWarnAboutReferences, bool bWarnAboutSoftReferences) Line 776

Our total actor count is about 7k, and most of it is broken up into smaller sub-levels with the largest about 1.7k actors. The code in question seems to be serializing the level to check for soft references in order to warn the user about them.

Questions: 1. Is there a safe way to speed this up? It looks like edActDeleteSelected has a flag for warning about soft references that defaults to true. Would changing this to false (or adding a modifier key to force it false) cause any major issues? 2. Is this hang expected for a level with 1.8k actors, or is there maybe something else going on internally like a specific actor class causing hangs?

Thanks, - Chance

Product Version: UE 4.20
Tags:
more ▼

asked Dec 12 '18 at 08:06 PM in Using UE4

avatar image

Chance Lyon
1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question