Commit Graph

217 Commits

Author SHA1 Message Date
Devin Doucette
3e06559dcf IoDispatcher: Always initialize IoDispatcher
Only return true from FIoDispatcher::IsInitialized() when the script objects chunk exists to keep its behavior consistent. Later, this function will be deprecated in favor of a function on IAsyncPackageLoader.

#rb Zousar.Shaker
#fyi CarlMagnus.Nordin
#preflight 614541e1bf494a0001bd76bc

[CL 17570905 by Devin Doucette in ue5-main branch]
2021-09-20 10:59:45 -04:00
Robert Millar
3979571810 Fix crash in pak decryptor by giving the decryptor its own archive.
#jira none
#rb none
#robomerge[bot1] dev-enginemerge

[CL 17454440 by Robert Millar in ue5-main branch]
2021-09-08 02:05:48 -04:00
Per Larsson
853968c207 Don't initialize the I/O dispatcher from PAK when running legacy cook-on-th-fly (-FileHostIP)
#rb none
#rnx
#jira none

[CL 17453975 by Per Larsson in ue5-main branch]
2021-09-08 00:18:52 -04:00
Robert Millar
ac91821109 More UnrealPak compile fixes.
#jira none
#rb none
#robomerge[bot1] Dev-EngineMerge

[CL 17448461 by Robert Millar in ue5-main branch]
2021-09-07 15:13:30 -04:00
Robert Millar
7ea4580832 Fix editor and clang compiles for pak file changes.
#jira none
#rb none
#robomerge[bot1] Dev-EngineMerge

[CL 17447958 by Robert Millar in ue5-main branch]
2021-09-07 14:32:51 -04:00
Robert Millar
808b2ec399 Share pak readers between threads and retire pak readers that haven't been used after a few seconds.
#jira UE-120694
#rb carlmagnus.nordin, ben.woodhouse
#robomerge[bot1] Dev-EngineMerge

[CL 17447692 by Robert Millar in ue5-main branch]
2021-09-07 14:09:23 -04:00
CarlMagnus Nordin
1808965af8 Prevent problems caused by waiting on pak read requests pulling in other pak jobs while clearing old block tassk.
#rb pj.kack
#rnx
#jira UE-120960

[CL 17314120 by CarlMagnus Nordin in ue5-main branch]
2021-08-26 02:18:20 -04:00
CarlMagnus Nordin
99384349bc LLM tags fixup
#rnx
#rb none
#jira UE-120882

[CL 17066062 by CarlMagnus Nordin in ue5-main branch]
2021-08-05 05:33:13 -04:00
Matt Peters
fe8fafb18b #jira FORT-392393
Add comments and a test framework for testing FPakProcessedReadRequest.
#robomerge[bot1] dev-enginemerge-test
#rb Graeme.Thornton
#rnx

[CL 17029321 by Matt Peters in ue5-main branch]
2021-08-03 09:12:55 -04:00
Matt Peters
e80f512a53 #jira FORT-392393
Add an earlier FATAL log to catch invalid premature deletion of FPakProcessedReadRequest before it can cause difficult-to-diagnose crashes on the asynchronous DoProcessing thread.
#rb Justin.Marcus
#rnx
#robomerge[bot1] dev-enginemerge-test

[CL 17015222 by Matt Peters in ue5-main branch]
2021-08-02 08:48:38 -04:00
charles bloom
3bdc1ea255 FCompression::GetMaximumCompressedSize to clean up differentiation from CompressMemoryBound
use GetMaximumCompressedSize for decoding
use CompressMemoryBound for encoding

#rb dan.thompson

[CL 16897963 by charles bloom in ue5-main branch]
2021-07-20 12:28:54 -04:00
charles bloom
7906036da8 OodleDataCompression in Core
All games now use Engine Oodle for runtime decompression
Oodle in Engine can load an older Oodle DLL for encoding packages to keep making the same binary data

#rb dan.thompson,devin.doucette

[CL 16879404 by charles bloom in ue5-main branch]
2021-07-18 13:26:14 -04:00
aurel cordonnier
d17d20ca36 Merge from Release-Engine-Test @ 16758890 to UE5/Main
This represents UE4/Main @ 16738161 and Dev-PerfTest @ 16737719 (and Release-17.00 @ 16658211)

[CL 16763350 by aurel cordonnier in ue5-main branch]
2021-06-23 17:51:32 -04:00
aurel cordonnier
8eebe8841f Merge UE5/RET @ 16305968 to UE5/Main
This represents UE4/Main @ 16261013 and Dev-PerfTest @ 16259937

[CL 16306996 by aurel cordonnier in ue5-main branch]
2021-05-12 18:10:03 -04:00
Andrew Davidson
3ddc3a4da3 Merge up from //UE5/Dev-LargeWorldCoordinates
#rb none

[CL 16211417 by Andrew Davidson in ue5-main branch]
2021-05-05 15:07:25 -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
Matt Peters
231c54ddd1 #jira UE-114482
FPakFile::DecodePakEntry: Fix special case handling for when CompressionBlockSize should be set equal to UncompressedSize.
The original legacy condition was to set CompressionBlockSize = UnCompressedSize when UncompressedSize < 65536.
That condition is incompatible with future plans for more flexible CompressionBlockSize.
We changed that to UnCompressedSize < CompressionBlockSize, but now we have found that
new check does not catch the case of e.g. UnCompressedSize == 909, CompressionBlockSize = 909, and encoded CompressionBlockSize == 909 >> 11 == 0.
The original legacy condition relied on the assumption that (UncompressedSize < 65536) implies (NumCompressionBlocks == 1).
In our second attempt at fixing the legacy condition, we now use the condition NumCompressionBlocks == 1.
#rb Charles.Bloom
#rnx

[CL 16161323 by Matt Peters in ue5-main branch]
2021-04-29 16:14:48 -04:00
Jian Ru
f700cc15dd Add recursion support to FCompressionScratchBuffers. This is needed to fix a race condition with the inflight decompression task. It wasn�t a problem in UE4 because FAsyncTask::SyncCompletion used to just wait on a completion event. In UE5, however, it will try to pull other tasks from task queues and execute them locally until either there is no more task or the completion event is triggered.
#jira UE-113581
#rb arne.schober,ben.woodhouse,carlmagnus.nordin

[CL 16073735 by Jian Ru in ue5-main branch]
2021-04-21 10:55:31 -04:00
Marc Audy
01b7c9f4f5 Merge UE5/RES @ 15958325 to UE5/Main
This represents UE4/Main @ 15913390 and Dev-PerfTest @ 15913304

[CL 15958515 by Marc Audy in ue5-main branch]
2021-04-08 14:32:07 -04:00
Marc Audy
0cbbc781ca Merge UE5/Release-Engine-Staging @ 15740152 to UE5/Main
This represents UE4/Main @ 15709114

[CL 15740605 by Marc Audy in ue5-main branch]
2021-03-18 15:20:03 -04:00
Marc Audy
9753392e2b Merge UE5/RES CL# 15462083 to UE5/Main
This represents UE4/Main @ 15414221

[CL 15463811 by Marc Audy in ue5-main branch]
2021-02-18 18:13:28 -04:00
Arne Schober
72469b131a U5 - Don't keep the lock across the waitpoint.
#RB Nuno.Leiria

[CL 15339348 by Arne Schober in ue5-main branch]
2021-02-05 13:07:07 -04:00
charles bloom
3aad0ff797 Fix EncodePakEntry for compressionblocksize. Maintains binary compatibility with existing paks.
#rb: josh.adams

[CL 15242874 by charles bloom in ue5-main branch]
2021-01-28 13:15:04 -04:00
Marc Audy
bc88b73a29 Merge Release-Engine-Staging to Main @ CL# 15151250
Represents UE4/Main @ 15133763

[CL 15158774 by Marc Audy in ue5-main branch]
2021-01-21 16:22:06 -04:00
CarlMagnus Nordin
c565398bdd IoDispatcher: Added support for external backends
#rnx
#rb pj.kack, per.larsson

[CL 15134585 by CarlMagnus Nordin in ue5-main branch]
2021-01-19 04:39:56 -04:00