Commit Graph

51 Commits

Author SHA1 Message Date
Kenzo Terelst
35ec639f68 - Allow creation of RHIRayTracingGeometry when IndexBuffer is nullptr
- Remove RT GPUSkinCache spam to log

#jira UE-107670
#rb Yuriy.ODonnell

[CL 15316955 by Kenzo Terelst in ue5-main branch]
2021-02-04 12:12:07 -04:00
Marc Audy
bf80889353 UE5/Release-Engine-Staging to UE5/Main
This represents UE4/Main up to CL# 14958402

[CL 15028197 by Marc Audy in ue5-main branch]
2021-01-08 19:56:07 -04:00
Marc Audy
ada7c144fa Merge //UE5/Release-Engine-Staging @14903491 to //UE5/Main
[CL 14906022 by Marc Audy in ue5-main branch]
2020-12-11 14:21:20 -04:00
Emil Persson
72db809300 Replace legacy LockVertexBuffer()/LockIndexBuffer()/LockStructuredBuffer() calls with the unified LockBuffer()
#rb kenzo.terelst

[CL 14898308 by Emil Persson in ue5-main branch]
2020-12-10 11:51:32 -04:00
Richard Malo
1d647220fe Cook: Added possibility to generate packages during the cook process using CookPackageSplitter (currently only support using cook commandlet).
WorldPartition : Removed PreCookCommandlet and replaced with new FWorldPartitionCookPackageSplitter.
#rb matt.peters, patrick.enfedaque, jeanfrancois.dube

[CL 14806302 by Richard Malo in ue5-main branch]
2020-11-23 09:11:36 -04:00
Marc Audy
50a3d7d368 Merge Release-Engine-Staging to Main @ CL# 14467590
This represents UE4/Main @ 14432125 + some cherrypick fixes

[CL 14468207 by Marc Audy in ue5-main branch]
2020-10-09 22:42:26 -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
Michal Valient
95d19f95b1 [REVERB] Merging //UE4/Private-Reverb-Development@13832732
#rb graham.wihlidal, rune.stubbe, brian.karis, andrew.lauritzen, jeff.farris

[CL 13834854 by Michal Valient in ue5-main branch]
2020-07-06 18:58:26 -04:00
dmitriy dyomin
390be4d8fa Add an assert to a texture sampler cache to ensure its used only from RT
#ROBOMERGE-SOURCE: CL 11813567 via CL 11813568 via CL 11813569
#ROBOMERGE-BOT: (v656-11643781)

[CL 11877835 by dmitriy dyomin in Main branch]
2020-03-03 14:10:25 -05:00
dmitriy dyomin
fa032f7241 Re-submitting: Share sampler state objects between textures
#ROBOMERGE-SOURCE: CL 11625747 via CL 11625750 via CL 11625751
#ROBOMERGE-BOT: (v656-11643781)

[CL 11803910 by dmitriy dyomin in Main branch]
2020-03-01 00:31:56 -05:00
bob tellez
1c63f1cce1 Back out changelist 11596383. Compile error
[FYI] Dmitriy.Dyomin


#ROBOMERGE-SOURCE: CL 11610119 via CL 11610126 via CL 11610131
#ROBOMERGE-BOT: (v656-11643781)

[CL 11758850 by bob tellez in Main branch]
2020-02-28 13:35:26 -05:00
dmitriy dyomin
8e45629b19 Share sampler state objects between textures
#rb none

#ROBOMERGE-OWNER: dmitriy.dyomin
#ROBOMERGE-AUTHOR: dmitriy.dyomin
#ROBOMERGE-SOURCE: CL 11596383 via CL 11596386 via CL 11596387
#ROBOMERGE-BOT: (v656-11643781)

[CL 11722115 by dmitriy dyomin in Main branch]
2020-02-27 21:27:55 -05:00
lukas hermanns
c80f79d5cd Allow FRenderResource to be initialized even on exit request.
#rb Ben.Ingream
#jira UE-89166, UE-88809
#rnx

#ROBOMERGE-SOURCE: CL 11650089 in //UE4/Release-4.25/... via CL 11650091
#ROBOMERGE-BOT: RELEASE (Release-4.25Plus -> Main) (v656-11643781)

[CL 11650094 by lukas hermanns in Main branch]
2020-02-27 09:30:58 -05:00
Josh Adams
aa9705149b Copying Private-LoadTimes-4.24 stream to Main. Biggest changes are in Materials/Shader memory freezing.
#rb none

[CL 11282608 by Josh Adams in Main branch]
2020-02-06 13:13:41 -05:00
zach bethel
74debefbae Backing out refactor of FRenderResource::InitPreRHIResources as it breaks Mac and Linux builds.
#rb none
#jira none
#lockdown cristina.riveron

#ROBOMERGE-SOURCE: CL 10944458 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v632-10940481)

[CL 10944461 by zach bethel in Main branch]
2020-01-10 14:53:47 -05:00
zach bethel
cd15077781 Refactored global FRenderResource creation to occur after FDynamicRHI::Init. This removes the need for every backend to manually initialize the immediate context and removes copy-pasta.
This change is in response to a bug in the current implementation where only the D3D12 backend correctly initializes the immediate command list context prior to initializing global render resources (which use the immediate command list). All other backends only happen to work due to the bypass being enabled in the editor.

In shipping builds this causes a crash due to the command list context being null.

#jira UE-86148
#rb Will.Damon, Lukas.Hermanns, Mihnea.Balta, Jonas.Meyer
#lockdown cristina.riveron

#ROBOMERGE-OWNER: zach.bethel
#ROBOMERGE-AUTHOR: zach.bethel
#ROBOMERGE-SOURCE: CL 10942789 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v632-10940481)

[CL 10942847 by zach bethel in Main branch]
2020-01-10 13:04:15 -05:00
ryan durand
0f0464a30e Updating copyright for Engine Runtime.
#rnx
#rb none


#ROBOMERGE-OWNER: ryan.durand
#ROBOMERGE-AUTHOR: ryan.durand
#ROBOMERGE-SOURCE: CL 10869210 via CL 10869511 via CL 10869900
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870549 by ryan durand in Main branch]
2019-12-26 14:45:42 -05:00
mihnea balta
b0cc19eaa1 Fixed black lightmaps after opening the static mesh editor while using mobile preview mode.
Lightmap resources were not recreated correctly when when the feature level changed. Also, modified FRenderResource::ChangeFeatureLevel() so that it doesn't recreate resources which are already using the correct feature level.

#jira UE-79367
#rb daniel.wright
#lockdown cristina.riveron

#ROBOMERGE-SOURCE: CL 8376524 in //UE4/Release-4.23/...
#ROBOMERGE-BOT: RELEASE (Release-4.23 -> Main) (v406-8472469)

[CL 8498103 by mihnea balta in Main branch]
2019-09-04 15:56:07 -04:00
uriel doyon
3591ea5070 Added some metrics to shrink buffer size when Niagara particles go down significantly.
This affects FGlobalDynamicReadBuffer, FGlobalDynamicVertexBuffer and FGlobalDynamicIndexBuffer.

   "r.NumFramesUnusedBeforeReleasingGlobalResourceBuffer"
   Number of frames after which unused global resource allocations will be discarded. Set 0 to ignore. (default=30)

Also added shrinking logic to the FNiagaraDataSet buffers:

   "fx.NiagaraDataBufferMinSize"
   Niagara data buffer minimum allocation size in bytes. (Default=512)

   "fx.NiagaraDataBufferShrinkFactor"
   Niagara data buffer size threshold for shrinking. (Default=3)
   The buffer will be reallocated when the used size becomes 1/F of the allocated size.

#rb shaun.kime, simon.tovey


#ROBOMERGE-SOURCE: CL 8097674 via CL 8108818
#ROBOMERGE-BOT: (v401-8057353)

[CL 8108895 by uriel doyon in Main branch]
2019-08-17 01:37:21 -04:00
mickael gilabert
bef29439ec Added csv stats to track RT time easier
#rb none
[FYI] ben.woodhouse
#rnx


#ROBOMERGE-SOURCE: CL 8040907 via CL 8041828 via CL 8044376 via CL 8046905
#ROBOMERGE-BOT: (v400-8057353)

[CL 8066272 by mickael gilabert in Main branch]
2019-08-15 16:59:35 -04:00
marcus wassmer
81122da0b6 Save 24 bytes from FRenderResource for platforms that set PLATFORM_NEEDS_RHIRESOURCELIST to 0
#rb rolando.caloca
[FYI] mark.satterthwaite, luke.thatcher,dmitriy.dyomin


#ROBOMERGE-OWNER: marcus.wassmer
#ROBOMERGE-AUTHOR: marcus.wassmer
#ROBOMERGE-SOURCE: CL 4977376 via CL 4977378 via CL 4979036

[CL 4982426 by marcus wassmer in Main branch]
2019-02-13 10:42:56 -05:00
Krzysztof Narkowicz
10ee8def1f Fixed rendering corruption and crashes when r.DoInitViewsLightingAfterPrepass 1. This was caused by using FGlobalDynamic(Vertex/Index/Read)Buffer before it was committed (also commit was overlapping the parallel draw cmd list):
* IntiViews
* Dispatch prepass parallel cmd list (flickering, as global buffers weren't committed).
* InitShadows.
* Commit global buffers (race condition and potential crash).

This was fixed by:
* Renamed FNiagaraGlobalReadBuffer to FGlobalDynamicReadBuffer and moved it out from Niagara.
* Removed all global buffer singletons and placed them inside appropriate renderers as static members.
* They are also separated into two - one for InitViews and one for InitShadows, so we can dispatch prepass while writing to the shadow global buffers.
* All global buffers are now passed as a parameter and/or through mesh collector.

#jira UE-69167
#rb Rolando.Caloca
#rnx

[CL 4871865 by Krzysztof Narkowicz in Main branch]
2019-02-01 17:02:33 -05:00
Rolando Caloca
732810a13b DR - Copying //UE4/Dev-Main@4785067 to //UE4-DevRendering
#rb none
#rnx
#lockdown Marcus.Wassmer

[CL 4790611 by Rolando Caloca in Dev-Rendering branch]
2019-01-23 17:01:56 -05:00
Rolando Caloca
e110a567a7 DR - More removal of ENQUEUE_UNIQUE_RENDER_COMMAND_ONEPARAMETER
#rnx
#rb none

[CL 4772039 by Rolando Caloca in Dev-Rendering branch]
2019-01-22 15:11:28 -05:00