Commit Graph

228 Commits

Author SHA1 Message Date
Devin Doucette
c1c9a493c0 CompactBinary: Added validation to LoadCompactBinary and removed asserts from the other load functions
#rb Zousar.Shaker
#rnx
#preflight 60bc53b70249c30001c6a20e

[CL 16570338 by Devin Doucette in ue5-main branch]
2021-06-07 10:28:39 -04:00
Devin Doucette
85e69c801f CompactBinary: Added operator[] to field types and AsView() to buffer types
#rb Zousar.Shaker
#rnx

[CL 16553590 by Devin Doucette in ue5-main branch]
2021-06-03 17:27:38 -04:00
Devin Doucette
e2aaddd829 CompactBinary: Made buffers and views easier to use by eliminating the complex options
- Renamed TryGetSerialized[Range]View to TryGet[Range]View.
- Changed GetBuffer to return a composite buffer with the type.
- Changed GetView to be protected instead of public.
- Removed GetRangeBuffer and GetRangeView.

#rb Zousar.Shaker
#rnx
#preflight 60b796cac744b20001542535

[CL 16535362 by Devin Doucette in ue5-main branch]
2021-06-02 11:55:09 -04:00
Devin Doucette
490a4a0db2 CompactBinary: Restricted compact binary attachments to objects to simplify package management
#rb Zousar.Shaker
#rnx
#preflight 60b71447ae46a1000144f1d9

[CL 16533710 by Devin Doucette in ue5-main branch]
2021-06-02 09:33:55 -04:00
Devin Doucette
b6ec26467a CompactBinary: Renamed Type to TypeWithFlags and clarified its protected accessors
#rb Zousar.Shaker
#rnx
#preflight 60b69a12107dc6000169dd74
#preflight 60b69a12107dc6000169dd74

[CL 16524004 by Devin Doucette in ue5-main branch]
2021-06-01 17:56:06 -04:00
Devin Doucette
237e622f4c CompactBinary: Remove an assert when loading from an archive
This is the only data-dependent assert that crept into compact binary serialization, and needs to be removed to allow for graceful error handling.

#rb Tim.Smith
#rnx

[CL 16510589 by Devin Doucette in ue5-main branch]
2021-05-31 15:35:58 -04:00
Devin Doucette
b1ddb00d6e CompactBinary: Renamed CompactBinaryAttachment to ObjectAttachment
This is a purely mechanical change to update names and comments. There is no behavioral difference in this change. A subsequent change will modify the behavior to match the new name.

#rb trivial
#rnx

[CL 16510518 by Devin Doucette in ue5-main branch]
2021-05-31 15:19:40 -04:00
aurel cordonnier
43fa62fcd8 Merge from Release-Engine-Test @ 16487383 to UE5/Main
This represents UE4/Main @ 16445039 and Dev-PerfTest @ 16444526

[CL 16488106 by aurel cordonnier in ue5-main branch]
2021-05-27 13:40:37 -04:00
Steve Robb
1f3fe8c9ac Some ANSICHAR/UTF8CHAR cast fixes for upcoming changes to StringConv.h.
#rb none
#jira none

[CL 16469364 by Steve Robb in ue5-main branch]
2021-05-26 10:45:12 -04:00
Devin Doucette
85606b66ad CompactBinary: Switched loop variables to references to avoid compile warnings
#rb trivial
#rnx

[CL 16386282 by Devin Doucette in ue5-main branch]
2021-05-19 11:01:52 -04:00
Martin Ridgers
fd78eb4f5c Removed redundant include statement.
#rb trivial
#rnx

[CL 16382124 by Martin Ridgers in ue5-main branch]
2021-05-19 03:52:36 -04:00
Ben Ingram
c249923be9 Don't call destructors when destroying frozen objects
- Frozen memory images may have de-duplicated sections, where the same object is referenced multiple times; this means default destructors might be called multiple times, which is not supported in general
- Add a hook to allow custom behavior to destroy frozen objects that may hold references to external resources
- Within shader system, no need to run destructors, since all memory should be owned by the top-level memory image
#jira none
#rb arciel.rekman, charles.bloom

[CL 16278300 by Ben Ingram in ue5-main branch]
2021-05-11 15:12:06 -04:00
Devin Doucette
3696e1f7e6 CompactBinary: Changed Get[Range]Hash(FBlake3&) to Append[Range]Hash(FBlake3&)
#rb Matt.Peters
#rnx
#preflight 60901f8c6aab1a0001d12d0f

[CL 16185309 by Devin Doucette in ue5-main branch]
2021-05-03 13:26:26 -04:00
aurel cordonnier
50944fd712 Merge UE5/RES @ 16162155 to UE5/Main
This represents UE4/Main @ 16130047 and Dev-PerfTest @ 16126156

[CL 16163576 by aurel cordonnier in ue5-main branch]
2021-04-29 19:32:06 -04:00
Devin Doucette
14f57480b2 CompactBinary: Added explicit operator bool for array and object types
#rb Zousar.Shaker
#rnx
#preflight 607f45d88737300001a70819

[CL 16069971 by Devin Doucette in ue5-main branch]
2021-04-21 00:19:30 -04:00
Devin Doucette
3e0d13ef75 VarInt: Added comments about signed integer encoding
#rb trivial
#rnx

[CL 16050785 by Devin Doucette in ue5-main branch]
2021-04-19 10:39:33 -04:00
Devin Doucette
aa52dbb108 VarInt: Add support for FArchive
#rb Arciel.Rekman
#rnx
#preflight 607d15d8d7af9b0001f104cc

[CL 16050148 by Devin Doucette in ue5-main branch]
2021-04-19 09:12:47 -04:00
charles bloom
6331ae849c remove MemStack constructor with unused int argument
#rb none
#fyi yuriy.odonnell

[CL 16047263 by charles bloom in ue5-main branch]
2021-04-18 13:06:22 -04:00
Ben Ingram
bb1a6e953e When copying FHashedName, avoid making shallow copy of frozen debug string. Instead make sure the copy is pointing to an interned string
#jira none
#rb charles.bloom

[CL 16041619 by Ben Ingram in ue5-main branch]
2021-04-16 18:44:16 -04:00
Devin Doucette
b49d5a4033 CompactBinary: Improved usability and performance of field iterators
#rb Zousar.Shaker
#rnx
#preflight 6076120fd546e90001f5d657

[CL 16005853 by Devin Doucette in ue5-main branch]
2021-04-14 11:19:18 -04:00
mark lintott
bd61859350 #jira 112822
#rb johan.torp
Removal of UE4 references in Archive.h

[CL 16002350 by mark lintott in ue5-main branch]
2021-04-14 05:14:13 -04:00
Devin Doucette
308f312490 CompactBinary: Added CompositeBuffer overloads and made non-view arrays and objects behave more consistently
#rb Zousar.Shaker
#rnx

[CL 15983785 by Devin Doucette in ue5-main branch]
2021-04-12 17:20:30 -04:00
Devin Doucette
fa8250517d SharedBuffer: Added MoveToShared() and MoveToUnique() to convert between buffer types
#rb Matt.Peters
#rnx

[CL 15917930 by Devin Doucette in ue5-main branch]
2021-04-05 12:38:27 -04:00
mark lintott
24420693b6 #jira UE-111195
Updated references to UE4 to Unreal in NetworkFileConnection.cpp
This required references to GPackageFileUE4Version and GPackageFileLicenseeUE4Version to also be updated to GPackageFileUnrealVersion and GPackageFileLicenseeUnrealVersion accordingly

#ROBOMERGE-SOURCE: CL 15850452 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v786-15839533)

[CL 15851651 by mark lintott in ue5-main branch]
2021-03-29 11:38:01 -04:00
arciel rekman
23386736ce Minor optimizations to the memory image writing (UE-110824)
- Flatten memory image sections in parallel and preallocate the array for writing.
- Memory image writing is currently happening on the game thread and either moving it out or optimizing is critical.
- Makes flattening about 3x faster on the test asset (~90ms -> ~30ms)

#rb Ben.Ingram
#jira UE-110824
[at]Ben.Ingram, [at]Jason.Nadro

#ROBOMERGE-SOURCE: CL 15761836 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v783-15756269)

[CL 15773710 by arciel rekman in ue5-main branch]
2021-03-23 05:13:38 -04:00