Commit Graph

8381 Commits

Author SHA1 Message Date
Jason Nadro
11a4b68eb3 Fix memory leak in FPreloadFile.
- Cache the AsyncSizeHandle and delete it when the size callback is complete.

#rb Justin.Marcus
#review-15930645
#jira none

[CL 15931167 by Jason Nadro in ue5-main branch]
2021-04-06 11:28:49 -04:00
Benn Gallagher
cb4566369d Chaos - Add maximum linear and angular speeds per-particle. Default linear limit to float max, angular speed is configured by project settings
#rb Jaco.VanDyk
#jira UE-101477
#preflight 606c500e52aa0800010d78b1
#lockdown Nick.Whiting

#ROBOMERGE-OWNER: Benn.Gallagher
#ROBOMERGE-AUTHOR: benn.gallagher
#ROBOMERGE-SOURCE: CL 15930001 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v786-15839533)
#ROBOMERGE-CONFLICT from-shelf

[CL 15930423 by Benn Gallagher in ue5-main branch]
2021-04-06 10:45:16 -04:00
graham wihlidal
50fac04342 Significant improvements to D3D12 memory tracking/stats, and tracking/warning about video->system memory demotion.
* Removed FD3D12Adapter::GetLocalVideoMemoryInfo() and implemented UpdateMemoryInfo().
  * Local and Non-Local memory are both retrieved now.
  * Results are cached in a new FD3D12MemoryInfo struct on FD3D12Adapter. (updated only once per frame instead of every call like before).
  * Optimized FD3D12DynamicRHI::RHIGetTextureMemoryStats() to not call expensive DXGI query memory functions per texture.
* Implemented "Demoted Video Memory" D3D12 memory counter to show the amount of video memory that has been demoted to system memory.
  * aka. RIP performance
* Implemented "Used System Memory" D3D12 memory counter to show the amount of non-local memory allocated by a device adapter
  * Summation of demoted video memory, and also memory that should be non-local (i.e. upload heaps).
* Refactored all the D3D12 RHI stat counters.
  * Renamed/moved into cleaner groupings.
  * Avoid summations from being grouped in with children (making the stats hard to understand without looking at code).
  * Made it possible to hide various groupings where desired.
  * D3D12Memory -> D3D12Memory, D3D12Resources, D3D12Allocations
  * D3D12MemoryBuffer -> D3D12BufferAllocations
  * D3D12MemoryTransient -> D3D12TransientAllocations
  * D3D12PipelineState -> unchanged
  * D3D12DescriptorHeap -> unchanged
* Added global GDemotedLocalMemorySize to report from RHI to on screen warning system the amount of local video memory demoted to system memory.
* Implemented an on screen error message when video memory demotion occurs.
  * Does not depend on stats being displayed (but currently compiles out based on STATS)
  * Message display can be toggled with r.DemotedLocalMemoryWarning (default: on)

#rb kenzo.terelst
#lockdown nick.whiting
[FYI] emil.persson, michal.valient, yuriy.odonnell
#jira UE-111264

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

[CL 15928378 by graham wihlidal in ue5-main branch]
2021-04-06 04:56:37 -04:00
Matt Peters
f2df7cfaee #jira UE-112788 Silence static analysis warning C6334: sizeof operator applied to an expression with an operator might yield unexpected results
#rb Devin.Doucette
#rnx

[CL 15921076 by Matt Peters in ue5-main branch]
2021-04-05 15:02:26 -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
Steve Robb
430a15c875 Non-unity build fix.
#rb none
#jira UE-112703
#rnx

[CL 15912262 by Steve Robb in ue5-main branch]
2021-04-04 13:47:17 -04:00
Devin Doucette
ab4a43d5db CompressedBuffer: Implemented a stable format for compressed buffers with support for no compression and LZ4
#rb Tim.Smith

[CL 15895927 by Devin Doucette in ue5-main branch]
2021-04-01 16:31:55 -04:00
Steve Robb
e62501978a Invoke() support for member functions with ref-qualifiers.
#rb devin.doucette
#jira none

[CL 15891983 by Steve Robb in ue5-main branch]
2021-04-01 13:53:53 -04:00
Steve Robb
75392dd307 Tidying up of some metaprogramming using C++17 features.
#rb devin.doucette
#jira none

[CL 15891817 by Steve Robb in ue5-main branch]
2021-04-01 13:47:22 -04:00
danny couture
0fc6b33626 Switch default allocator on Windows from tbb to mimalloc because of both performance and memory usage improvements
- See CL 15887498 description for benchmarks and motivation

[FYI] Stefan.Boberg, Yuriy.ODonnell, Francis.Hurteau
#rb Brandon.Dawson

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

[CL 15890065 by danny couture in ue5-main branch]
2021-04-01 11:40:02 -04:00
nuno leiria
cce4046751 Remove old clang workaround that creates symbol resolution linker errors
#rb brandon.schaefer

[CL 15889875 by nuno leiria in ue5-main branch]
2021-04-01 11:23:39 -04:00
Devin Doucette
5e61119b04 CompositeBuffer: Added a new immutable non-contiguous buffer type that is a collection of FSharedBuffer
#rb Tim.Smith

[CL 15889771 by Devin Doucette in ue5-main branch]
2021-04-01 11:18:43 -04:00
Steve Robb
9cfc0924bf UE4Invoke_Private renamed to UE::Core::Private.
#rb devin.doucette
#jira none

[CL 15888106 by Steve Robb in ue5-main branch]
2021-04-01 08:56:32 -04:00
Martin Ridgers
8259297581 Replaced the UE4Variant_Detail namespace with UE::Core::Private.
#rb steve.robb
#jira ue-111484
#robomerge Release-5.0-EarlyAccess

[CL 15887814 by Martin Ridgers in ue5-main branch]
2021-04-01 08:14:28 -04:00
Johan Torp
9b75d0777d Added FPathViews::Append overloads for FName and C strings
#rb matt.peters

[CL 15886565 by Johan Torp in ue5-main branch]
2021-04-01 02:55:15 -04:00
Johan Torp
12cff15e4f Added string builder assignment operator and overloads for FSimpleParse and FParse::LineExtended
#rb devin.doucette

[CL 15886562 by Johan Torp in ue5-main branch]
2021-04-01 02:54:44 -04:00
halfdan ingvarsson
88a3296353 Disable pragma-pack warnings globally with Clang on Windows. CL 1586136 fixed unbracketed warning push/pop for clang which uncovered this warning.
# See discussion on https://stackoverflow.com/questions/52865610/suppressing-warning-about-pragma-pack-in-included-file

#jira none
#rb ben.marsh
#rnx

[CL 15880121 by halfdan ingvarsson in ue5-main branch]
2021-03-31 15:36:19 -04:00
charles derousiers
54e53953fe Change hair radius scaling to be done into VF, rather than interpolation in order to support non-interpolated hair.
This allows to fix root/tip scaling when a groom does not need interpolation (i.e., no-skinning & no-simulation).

#rb none
#jira UE-110053

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

[CL 15877732 by charles derousiers in ue5-main branch]
2021-03-31 13:07:15 -04:00
arciel rekman
15bdbcab95 Roll back memory reservation when writing memory images.
- Spikes of up to 8.9GB have been reported, and the CPU savings aren't worth that.

#rb Danny.Couture
[FYI] Ben.Ingram, Danny.Couture
#jira none

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

[CL 15875743 by arciel rekman in ue5-main branch]
2021-03-31 11:28:02 -04:00
Patrick Boutot
4248548b4d Add a double version of FInterpTo.
#jira UE-88354
#rb steve.robb
#preflight 6063101db4299e0001c1ecaf

[CL 15875719 by Patrick Boutot in ue5-main branch]
2021-03-31 11:27:06 -04:00
Martin Ridgers
08217aa48e Correct determination of the number of functions in a .pdata segment. There is no null-terminator to the list, instead there's null _padding_. If the end of the last RUNTIME_FUNCTION object happened to align to 2^8 then the old function-count loop would read undefined data. This also happens to be much faster which is a bonus.
#rb jb
#rnx
#fyi Brandon.Dawson
#robomerge Release-5.0-EarlyAccess

[CL 15873327 by Martin Ridgers in ue5-main branch]
2021-03-31 07:57:45 -04:00
Martin Ridgers
de68396269 Swapped TAtomic out for std::atomic
#rb jb
#rnx

[CL 15873008 by Martin Ridgers in ue5-main branch]
2021-03-31 06:59:35 -04:00
jack porter
946b30a59a Remove UE3/UE4 references
#jira UE-112108
#jira UE-111469
#jira UE-111456
#jira UE-111451
#jira UE-111331
#jira UE-111149
#jira UE-111136
#jira UE-110941
#jira UE-104701
#rb trivial
[FYI] Chris.Babcock
#preflight 606446947a99880001b3cbac

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

[CL 15872932 by jack porter in ue5-main branch]
2021-03-31 06:40:14 -04:00
Martin Ridgers
153b8dab40 Reduced scope of "using namespace" so it doesn't leak into other unity files.
#rb jb
#rnx

[CL 15872749 by Martin Ridgers in ue5-main branch]
2021-03-31 06:07:23 -04:00
Martin Ridgers
4354c3a16f Deleted unused include
#rb jb
#rnx

[CL 15872744 by Martin Ridgers in ue5-main branch]
2021-03-31 06:05:53 -04:00