24 Commits

Author SHA1 Message Date
zach bethel
67e95c0191 Fixed non-unity build break.
#preflight trivial

[CL 23880136 by zach bethel in ue5-main branch]
2023-01-26 21:41:50 -05:00
zach bethel
316bf6d91d Recreate render proxies prior to rendering virtual textures in order to recreate cached mesh commands that get invalidated.
#jira none
#preflight trivial

[CL 23874325 by zach bethel in ue5-main branch]
2023-01-26 15:39:08 -05:00
christopher waters
f8abec7a8e Material header dependency cleanup
- Removing MaterialAttributeDefinitionMap and MaterialRenderProxy from MaterialShared.h
- Removing MaterialShared from Material.h

#preflight 639cbb35776b61ba3b82f03e

[CL 23541603 by christopher waters in ue5-main branch]
2022-12-16 16:24:02 -05:00
bryan sefcik
8cc129f2b6 IWYU Pass 1 - Engine/Source/Editor/...
#jira
#preflight 6306736ac85b7fef22be7751

[CL 21558583 by bryan sefcik in ue5-main branch]
2022-08-24 22:45:13 -04:00
zach bethel
34623f0321 Replaced thread-local MemStack with ConcurrentLinearAllocator across the renderer.
- Removed scene render mem-mark among others. MemStack usage is now restricted to local scopes with known marks.
 - Render resources with destructors are allocated using the FSceneRenderingBulkObjectAllocator on FSceneRenderer, which is deleted when the scene render is.

#preflight 62b266e20d4d6228de97babe
#rb mihnea.balta, yuriy.odonnell

[CL 20907647 by zach bethel in ue5-main branch]
2022-06-30 19:55:24 -04:00
Jeremy Moore
7f032769e6 Tidy use of RuntimeVirtualTexture::IsSceneReadyToRender().
Part of fix for low frame rate when selecting an RVT map in content browser.
#rb none
#jira none
#preflight 6131157b1a52e20001b44ecc

[CL 17407714 by Jeremy Moore in ue5-main branch]
2021-09-02 15:43:08 -04:00
Jeremy Moore
11b6560ac9 Use RenderPagesStandAlone() when building RVT and VHM MinMax textures.
Plays correctly with GPUScene and stops ensure() firing.
#rb none

[CL 15100429 by Jeremy Moore in ue5-main branch]
2021-01-14 20:15:23 -04:00
Ola Olsson
69d2af54aa Refactored GPU-Scene to store per-view dynamic primitives (for all views) in the one and primitive data buffer, after the regular primitives.
- Added step after dynamic primitives are gathered to allocate a range in GPU scene for the dynamic primitives.
- Moved more GPU-Scene functionality to member functions to clean up references to internal data
- Removed the PrimitiveShaderDataBuffer/Texture from FSceneViewState
- Removed OneFramePrimitiveShaderDataBuffer/Texture from FViewInfo
- Encapsulated the collection of dynamic primitive data for upload to avoid uploading twice and prepare for parallel upload.

#rb Krzysztof.Narkowicz,graham.wihlidal

[CL 14785776 by Ola Olsson in ue5-main branch]
2020-11-19 05:23:44 -04:00
zach bethel
2bc88676d6 Converted virtual texture system and GPU lightmass to RDG.
#rb yujiang.wang, jeremy.moore
#jira none

[CL 14581416 by zach bethel in ue5-main branch]
2020-10-26 16:44:44 -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
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
jeremy moore
8d944d513c Runtime virtual texture world height packing now depends on the volume extents.
Fixes precision issues raised by a number of licensees (for example UDN558460).
#jira none
#rb none

#ROBOMERGE-SOURCE: CL 12237042 in //UE4/Release-4.25/... via CL 12237054
#ROBOMERGE-BOT: RELEASE (Release-4.25Plus -> Main) (v664-12234175)

[CL 12239488 by jeremy moore in Main branch]
2020-03-17 23:19:30 -04:00
jeremy moore
3895afc8b1 Fix case where runtime virtual texture thumbnail generation crashes on package save.
#ROBOMERGE-SOURCE: CL 11218168 via CL 11218174 via CL 11218179
#ROBOMERGE-BOT: (v644-11213502)

[CL 11240891 by jeremy moore in Main branch]
2020-02-04 22:17:14 -05:00
jonathan bard
77b0d194c2 Added parameter to thumbnail renderers Draw function so that we can instruct them to clear the render target or not. This is for fixing thumbnails that render multiple sub-thumbnails to the same render target.
#rb bob.tellez


#ROBOMERGE-OWNER: jonathan.bard
#ROBOMERGE-AUTHOR: jonathan.bard
#ROBOMERGE-SOURCE: CL 11159778 via CL 11159790
#ROBOMERGE-BOT: (v640-11091645)

[CL 11160913 by jonathan bard in Main branch]
2020-01-29 10:59:27 -05:00
ryan durand
627baf970a Updating copyright for Engine Editor.
#rnx
#rb none


#ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870586 by ryan durand in Main branch]
2019-12-26 15:33:43 -05:00
jeremy moore
1744513472 Fix usage of non-UAV compatible formats that were breaking Windows7 build PCs
#ROBOMERGE-SOURCE: CL 9935415 via CL 9938097 via CL 9938158
#ROBOMERGE-BOT: (v558-9892490)

[CL 9938190 by jeremy moore in Main branch]
2019-10-31 16:06:30 -04:00
jeremy moore
55bb85a00d Support passing UAV of physical texture to RuntimeVirtualtexture::RenderPages
This will allow compressing direct to physical texture on platforms that support it
Some small RHI changes will have to be approved before turning on though


#ROBOMERGE-SOURCE: CL 9291051 via CL 9291054 via CL 9291057 via CL 9291060
#ROBOMERGE-BOT: (v452-9288972)

[CL 9291062 by jeremy moore in Main branch]
2019-09-29 17:29:22 -04:00
jeremy moore
85956ca3b0 Prepare for batched runtime virtual texture updates
#ROBOMERGE-SOURCE: CL 9289236 via CL 9290276 via CL 9290348 via CL 9290392
#ROBOMERGE-BOT: (v452-9288972)

[CL 9290546 by jeremy moore in Main branch]
2019-09-29 16:50:18 -04:00
jeremy moore
54e5f42aab Support for YCoCg encoding of the base color in runtime virtual textures
Gives much better quality result but encoding is slower and there is a 25% memory increase in the physical texture


#ROBOMERGE-SOURCE: CL 8997086 via CL 8997134 via CL 8997199
#ROBOMERGE-BOT: (v442-8990807)

[CL 8997226 by jeremy moore in Main branch]
2019-09-23 17:20:19 -04:00
jeremy moore
3ba224ece8 Generate thumbnails for world height RVTs
#ROBOMERGE-SOURCE: CL 8967155 via CL 8967167 via CL 8967178
#ROBOMERGE-BOT: (v436-8951088)

[CL 8967183 by jeremy moore in Main branch]
2019-09-22 16:43:57 -04:00
jeremy moore
6408410933 Make runtime virtual texture page clear before render optional
#ROBOMERGE-SOURCE: CL 8417719 via CL 8421383
#ROBOMERGE-BOT: (v404-8404397)

[CL 8421466 by jeremy moore in Main branch]
2019-09-03 10:52:02 -04:00
jeremy moore
420df6872a Test that scene is ready to render and that material proxies are up to date before drawing RVT thumbnail
Fixes check firing in RHIUpdateUniformBuffer()


#ROBOMERGE-SOURCE: CL 8405326 via CL 8405516
#ROBOMERGE-BOT: (v404-8404397)

[CL 8405520 by jeremy moore in Main branch]
2019-09-02 12:38:54 -04:00
jeremy moore
dd8eddc00b Some more non-unity build fixes
#ROBOMERGE-SOURCE: CL 8130646 via CL 8133911
#ROBOMERGE-BOT: (v401-8057353)

[CL 8160284 by jeremy moore in Main branch]
2019-08-21 09:38:23 -04:00
jeremy moore
ff327fe64e Add thumbnail previews for runtime virtual texture
#ROBOMERGE-SOURCE: CL 8126213 via CL 8132037
#ROBOMERGE-BOT: (v401-8057353)

[CL 8156568 by jeremy moore in Main branch]
2019-08-21 08:42:46 -04:00