Commit Graph

50 Commits

Author SHA1 Message Date
arciel rekman
2c4fba02af Fix hitching while precompiling PSO cache.
- Add a new API to release preloaded shader to provide a way to manage preloaded data (which was previously statically allocated).

#rb James.Doverspike, Richard.Wallis
[REVIEW] [at]Allan.Bentham, [at]Richard.Wallis
#preflight 625e11c4db15ac92db7ee858

#ROBOMERGE-AUTHOR: arciel.rekman
#ROBOMERGE-SOURCE: CL 19832275 via CL 19833640 via CL 19837454 via CL 19854946 via CL 19855339
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v940-19807014)

[CL 19856713 by arciel rekman in ue5-main branch]
2022-04-21 17:47:12 -04:00
allan bentham
ed40d5a057 Background PSO compililation changes,
Add an option to use a thread pool instead of taskgraph for GFX PSO precompile tasks.
Disabled by default. Use r.pso.PrecompileThreadPoolSize=N to enable.
threadpool PSO precompile tasks are not added as dependencies of RHIcmd list and should not block RHIT.

#rb Andriy.Tylychko, Arne.Schober
[FYI] peter.sauerbrei, jack.porter, Arciel.Rekman

#ROBOMERGE-OWNER: allan.bentham
#ROBOMERGE-AUTHOR: allan.bentham
#ROBOMERGE-SOURCE: CL 19571102 via CL 19571115 via CL 19571272 via CL 19571286
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v938-19570697)

[CL 19575811 by allan bentham in ue5-main branch]
2022-03-31 14:25:15 -04:00
chris genova
bc08b28872 Re-enable the incremental user PSO cache by having it save at shutdown.
Enable PSO cache CVars by default on Windows. This has no effect on D3D11 since the cache is disabled if GRHISupportsPipelineFileCache is false.


#ROBOMERGE-AUTHOR: chris.genova
#ROBOMERGE-SOURCE: CL 18785319 via CL 18785326 via CL 18785329 via CL 18785330 via CL 18785331 via CL 18785353 via CL 18785366
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18785369 by chris genova in ue5-main branch]
2022-01-30 08:19:37 -05:00
andrew davidson
0715ebc996 Type truncation fixes - Renderer
#rb arne.schober
#preflight 61d85ab0932a02483ce13e7d

#ROBOMERGE-AUTHOR: andrew.davidson
#ROBOMERGE-SOURCE: CL 18544411 in //UE5/Release-5.0/... via CL 18544434
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v899-18417669)

[CL 18544466 by andrew davidson in ue5-release-engine-test branch]
2022-01-07 10:39:08 -05:00
dmitriy dyomin
7f45c365e4 Add multiview and FDM/FSR attachments to the PSO caching system (Contributed by: Remi Palandri)
#jira UE-135687
#8656
#rb arciel.rekman

#ROBOMERGE-AUTHOR: dmitriy.dyomin
#ROBOMERGE-SOURCE: CL 18336352 in //UE5/Release-5.0/... via CL 18336361
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)

[CL 18336365 by dmitriy dyomin in ue5-release-engine-test branch]
2021-12-01 00:26:38 -05:00
arciel rekman
b81f760551 Disable auto-saving of the PSO cache file.
- We are already saving it on application exit (see FShaderPipelineCache::Close() and ~FShaderPipelineCache()) or on application deactivate (for platforms that don't exit, see PipelineStateCacheOnAppDeactivate).
- Auto-saving can lead to a deadlock: the scope of the FileCache lock is too broad, and save operation may itself need to execute async work (read a file from the pak), which will deadlock if all worker thread are blocked trying to take the same FileCache lock (happens when they try to add a PSO to the cache).
- There's no explicit disable toggle, but setting the autosave period to MAX_int32 seconds should do that.

#rb Chris.Genova
[REVIEW] [at]Chris.Genova
[FYI] Christina.Sturgill

#ROBOMERGE-AUTHOR: arciel.rekman
#ROBOMERGE-SOURCE: CL 18288437 via CL 18288905 via CL 18288949 via CL 18290355 via CL 18290406
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)

[CL 18290429 by arciel rekman in ue5-release-engine-test branch]
2021-11-24 18:30:09 -05:00
aurel cordonnier
69fe095547 Merge from Release-Engine-Staging @ 17636544 to Release-Engine-Test
This represents UE4/Main @17638339 and Dev-PerfTest @17636504

[CL 17638842 by aurel cordonnier in ue5-release-engine-test branch]
2021-09-27 19:54:25 -04:00
aurel cordonnier
7f517562d5 Merge from Release-Engine-Staging @ 17438845 to Release-Engine-Test
This represents UE4/Main @17430120 and Dev-PerfTest @17437669

[CL 17439044 by aurel cordonnier in ue5-release-engine-test branch]
2021-09-06 12:23:53 -04:00
christopher waters
6c4b4a91a4 Adding a required StencilRef argument to SetGraphicsPipelineState.
#jira none
#rb zach.bethel, mihnea.balta, florin.pascu
#preflight 61312f4a79ce170001d4a79e

#ROBOMERGE-SOURCE: CL 17422777 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v865-17346139)
#ROBOMERGE[bot1]: emt

[CL 17422941 by christopher waters in ue5-release-engine-test branch]
2021-09-03 12:04:52 -04:00
charles bloom
494b3de14e allow SerializeCompressedNew to read less than requested
fix FArchiveLoadCompressedProxy reading past end on last partial chunk

#rb devin.doucette

#ROBOMERGE-SOURCE: CL 17038478 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v848-17036448)

[CL 17038565 by charles bloom in ue5-release-engine-test branch]
2021-08-03 16:55:49 -04:00
aurel cordonnier
02c0f425e8 Copy up from Release-Engine-Staging @ 16738359
This represents UE4/Main @ 16738161 and Dev-PerfTest @ 16737719

[CL 16738582 by aurel cordonnier in ue5-release-engine-test branch]
2021-06-22 00:27:54 -04:00
Marc Audy
e80ea6b959 Merge from Release-Engine-Staging @ 16444985
This represents UE4/Main @ 16445039 and Dev-PerfTest @ 16444526

[CL 16445122 by Marc Audy in ue5-release-engine-test branch]
2021-05-25 02:43:26 -04:00
christopher waters
83f70197d3 Tessellation Removal: Removing RHI Hull/Domain shader types and enums.
#rb lukas.hermanns
#jira UE-94564
#preflight 607f2e11eb4f050001d4655e

[CL 16066223 by christopher waters in ue5-main branch]
2021-04-20 17:00:25 -04:00
christopher waters
edf90e8d4a Adding mesh shader support to pipeline caches.
- Pipeline caches had serialization code for the new types but wasn't creating the shaders on preload
- Fixing the cache commandlet to be flexible with the supported shader types.

#jira none
#rb jason.nadro, arciel.rekman

[CL 15801914 by christopher waters in ue5-main branch]
2021-03-24 12:45:47 -04:00
Marc Audy
8f73cd7fa9 Merge UE5/Release-Engine-Staging @ 15630841 to UE5/Main
This represents UE4/Main @ 15601601

[CL 15631170 by Marc Audy in ue5-main branch]
2021-03-05 19:27:14 -04:00
Marcus Wassmer
3b81cf8201 Merging using //UE5/Main_to_//UE5/Release-Engine-Staging @14384769
autoresolved files
#rb none

[CL 14384911 by Marcus Wassmer in ue5-main branch]
2020-09-24 00:43:27 -04:00
Marc Audy
a7c9001a94 Merging //UE5/Release-Engine-Staging to Main (//UE5/Main) @ 14075166
#rb
#rnx

[CL 14075271 by Marc Audy in ue5-main branch]
2020-08-11 01:36:57 -04:00
Marc Audy
11f5b21210 Merging //UE5/Release-Engine-Staging @ 13752110 to Main (//UE5/Main)
#rnx

[CL 13753156 by Marc Audy in ue5-main branch]
2020-06-23 18:40:00 -04:00
michael trepka
805cee2ab2 Fixed uninitialized varaible in FShaderPipelineCache that was causing stable cache load failures on some computers
[FYI] Arciel.Rekman, Chris.Bunner


#ROBOMERGE-SOURCE: CL 12204530 via CL 12210996 via CL 12211047
#ROBOMERGE-BOT: (v662-12191386)

[CL 12211135 by michael trepka in Main branch]
2020-03-16 13:29:59 -04:00
rolando caloca
b4ddf282b6 UE4.25 - Typo fix
#rb none
#jira UE-90413
#6772

#ROBOMERGE-SOURCE: CL 12132193 in //UE4/Release-4.25/... via CL 12132216
#ROBOMERGE-BOT: RELEASE (Release-4.25Plus -> Main) (v659-12123632)

[CL 12140394 by rolando caloca in Main branch]
2020-03-11 17:10:26 -04:00
peter sauerbrei
32a2bf7180 put back in the prioritized PSO caching system
#rb chris.bunner


#ROBOMERGE-SOURCE: CL 11580938 via CL 11580948 via CL 11580955 via CL 11580964
#ROBOMERGE-BOT: (v654-11333218)

[CL 11580972 by peter sauerbrei in Main branch]
2020-02-21 19:02:18 -05:00
dmitriy dyomin
f276753f0a Avoid creating tons of Blend, DepthStencil, Rasterizer states when caching PSOs
#ROBOMERGE-SOURCE: CL 11574745 via CL 11574747 via CL 11574748 via CL 11574749
#ROBOMERGE-BOT: (v654-11333218)

[CL 11574776 by dmitriy dyomin in Main branch]
2020-02-21 04:23:26 -05:00
peter sauerbrei
00b8de8412 fix for compile failure
#rb none


#ROBOMERGE-SOURCE: CL 11467783 via CL 11467791 via CL 11467868 via CL 11467925
#ROBOMERGE-BOT: (v654-11333218)

[CL 11467981 by peter sauerbrei in Main branch]
2020-02-17 17:34:37 -05:00
peter sauerbrei
8e7df5f8d1 fix for invalid PSO masks when the GameMask is disabled by default and we attempt to gather PSOs
#rb chris.bunner


#ROBOMERGE-SOURCE: CL 11467116 via CL 11467119 via CL 11467124 via CL 11467128
#ROBOMERGE-BOT: (v654-11333218)

[CL 11467276 by peter sauerbrei in Main branch]
2020-02-17 16:56:29 -05:00
peter sauerbrei
64e0c21033 revert out the prioritized PSO caching, seeing some very strange errors which we can't seem to resolve in time for 12.00
#rb none


#ROBOMERGE-SOURCE: CL 11458007 via CL 11458008 via CL 11458009 via CL 11458010
#ROBOMERGE-BOT: (v654-11333218)

[CL 11458011 by peter sauerbrei in Main branch]
2020-02-16 16:20:17 -05:00