Commit Graph

388 Commits

Author SHA1 Message Date
Dan Oconnor
4b74037d60 [UE-17419] When super blueprints had been compiled we could incorrectly deferr a blueprint on load because its super blueprint was no longer tagged as RF_LoadCompleted. Checking the linker instead
[CL 2596289 by Dan Oconnor in Main branch]
2015-06-22 18:52:17 -04:00
Robert Manuszewski
13b8c2f953 When queueing new async packages, also look for existing packages in loaded packages to process.
Added UPackage member to FPackageAsync to track both linker and the package.

Made sure async packages get deleted when cancelling async loading

[CL 2590490 by Robert Manuszewski in Main branch]
2015-06-17 14:01:54 -04:00
Jaroslaw Palczynski
7da0b1f597 Added better messages for ensuring retrieving vtable pointer.
#codereview Robert.Manuszewski

[CL 2589852 by Jaroslaw Palczynski in Main branch]
2015-06-17 05:46:51 -04:00
Robert Manuszewski
17911361b1 Adding guards to linker deletion so that nothing else can delete them except FLinkerManager.
Moved DeleteLoaders() declaration to Linker.h

[CL 2589184 by Robert Manuszewski in Main branch]
2015-06-16 15:41:55 -04:00
Robert Manuszewski
65fb0ff95e Deferred linker load delete to fix potential crashes when code attempts to access linkers that have already been deleted earlier in the callstack
[CL 2589115 by Robert Manuszewski in Main branch]
2015-06-16 15:08:39 -04:00
Marc Audy
0390d96d34 Add ForEachObjectWithOuter and ForEachObjectOfClass utility functions that will call a TFunctionRef for each object instead of using GetObjectsWithOuter/OfClass which requires copying each object in to a (potentially very large) array
#codereview Robert.Manuszewski

[CL 2588574 by Marc Audy in Main branch]
2015-06-16 09:58:38 -04:00
Robert Manuszewski
bc0c225c8d Deprecated FAsyncPackage Type as it was not used by anything.
[CL 2587642 by Robert Manuszewski in Main branch]
2015-06-15 14:26:23 -04:00
Steve Robb
0709480948 New IsSorted algorithm.
New FindSortedStringCaseInsensitive algorithm, which binary searches strings in an array.
Many UHT string tests replaced with FindSortedStringCaseInsensitive.
FPropertySpecifier moved to UHT.

#codereview robert.manuszewski

[CL 2587588 by Steve Robb in Main branch]
2015-06-15 13:40:28 -04:00
Robert Manuszewski
3f072c7eda Added missing implementation of FLinkerLoad::FlushCache(), removed unused InitLinkers
[CL 2587492 by Robert Manuszewski in Main branch]
2015-06-15 12:29:53 -04:00
Robert Manuszewski
87d48ff51c Making FLinkerLoad aware of FAsyncPackage association
[CL 2587214 by Robert Manuszewski in Main branch]
2015-06-15 06:15:31 -04:00
Maciej Mroz
b29937ec0a ME optimization: EX_CallMath - WIP
#codereview Nick.Whiting, Mike.Beach

[CL 2583927 by Maciej Mroz in Main branch]
2015-06-11 05:05:54 -04:00
Ben Zeigler
606bbc90da #UE4 Additional fixes to exclude async loading objects from iterators and marks when not called from async loading thread
#codereview robert.manuszewski

--------
Integrated using branch Ue4-To-UE4-Fortnite-Simple (reversed) of change#2583274 by Ben.Zeigler on 2015/06/10 16:18:58.

[CL 2583277 by Ben Zeigler in Main branch]
2015-06-10 16:19:27 -04:00
Marc Audy
af5f28ea2e Remove unused UObject::CreateArchetype and unimplemented UObject::UpdateArchetype
#codereview Robert.Manuszewski

[CL 2582620 by Marc Audy in Main branch]
2015-06-10 09:28:44 -04:00
Maciej Mroz
3b0a6cef0c UE-11946 Support Objects in Blueprint
- GenericCreateObject node
- UGameplayStatics::SpawnObject function
- DontUseGenericSpawnObject class meta data

Missing: runtime mechanism to verify if an object of given class can be spawned using Generic Create Object

#codereview Nick.Whiting, Mike.Beach

[CL 2581001 by Maciej Mroz in Main branch]
2015-06-09 04:42:50 -04:00
Richard TalbotWatkin
01ce7b40e7 Changed the default return value for GetResourceSize() back to 0. ResourceSize asset registry tag is now always added for non BP CDOs to prevent the ResourceSize tag from being filtered out when building asset tooltips.
#codereview Matt.Kuhlenschmidt, Bob.Tellez, Ben.Zeigler

[CL 2580537 by Richard TalbotWatkin in Main branch]
2015-06-08 17:48:37 -04:00
Maciej Mroz
edb7feb479 UE-13798 Make the shared state of the event graph use something akin to weak ptrs
#codereview Nick.Whiting, Robert.Manuszewski, Mikolaj.Sieluzycki

[CL 2578250 by Maciej Mroz in Main branch]
2015-06-05 05:04:40 -04:00
Nick Darnell
47e68af766 Engine - EPackageFlags & EObjectFlags can now be properly viewed in the debugger as a collection of enum entries, e.g. RF_Public | RF_Transactional, rather than just the raw numerical value. Don't overlap any flags in an enum declaration, otherwise the VS debugger won't treat it like it's a collection of flags any more.
[CL 2577628 by Nick Darnell in Main branch]
2015-06-04 17:11:53 -04:00
Gareth Martin
52d18dc0f1 Added support for UObjectProperty, ULazyObjectProperty and UAssetObjectProperty as UMapProperty keys
Fixed the non-FObjectInitializer constructors of properties to correctly add CPF_HasGetValueTypeHash where applicable
#codereview Steve.Robb

[CL 2575419 by Gareth Martin in Main branch]
2015-06-03 07:06:08 -04:00
Gareth Martin
e7cfc8d57f FORCEINLINE'd FStringAssetReference's GetTypeHash()
[CL 2575397 by Gareth Martin in Main branch]
2015-06-03 06:27:12 -04:00
Maciej Mroz
9da06251e6 Back out changelist 2573315
Complex struct (that must be initialized and destroyed) are properly handled in UObject::execLet after AccessViolation exception.
It makes the size of bytecode bigger, but it seems to be necessary.

#codereview Dan.Oconnor

[CL 2573735 by Maciej Mroz in Main branch]
2015-06-02 07:54:18 -04:00
Dan Oconnor
6fb2c05d2f Back out changelist 2572336 - This is causing animation blueprints to crash. To reproduce the issue just start QAGame and pie or open the player's animation blueprint
#codereview Maciej.Mroz

[CL 2573315 by Dan Oconnor in Main branch]
2015-06-01 18:48:34 -04:00
Maciej Mroz
87b33d42a9 Complex struct (that must be initialized and destroyed) are properly handled in UObject::execLet after AccessViolation exception.
It makes the size of bytecode bigger, but it seems to be necessary.

#codereview Nick.Whiting, Mike.Beach

[CL 2572336 by Maciej Mroz in Main branch]
2015-06-01 08:19:26 -04:00
Maciej Mroz
b182899f68 UE-14720 After context fail (Access None) some data dependent on the context aren't clear
#codereview Nick.Whiting, Michael.Noland

[CL 2572312 by Maciej Mroz in Main branch]
2015-06-01 06:31:01 -04:00
James Knight
789a0a27ef Moved enums that were only used for NetConnections from CoreNet.h to NetConnection.h. Allowed InitConnectiont to set the max packet size. Any specified max packet sizes greater than the specified MAX_PACKET_SIZE will default to MAX_PACKET_SIZE.
[CL 2567692 by James Knight in Main branch]
2015-05-27 19:30:49 -04:00
Robert Manuszewski
eed7377de0 Support for suspending async loading.
- Async loading will now be suspended when render thread is suspended. This fixes a rare crash on startup.
- Fixed an infinite loading screen in situation when a package hasn't finished loading but was in a queue to be finalized on the game thread and something requested it to load again.

[CL 2566673 by Robert Manuszewski in Main branch]
2015-05-27 11:02:10 -04:00