- Added a range allocator for allocating small blocks. It is enabled if 2 MB GPU page is used to reduce memory overhead. Perf is on par with FGPUMemoryPage.
- 20-run ReplayRun test data with 2 MB page and the new allocator: -0.12 ms FrameTime Avg, -0.17 ms GameThreadTime Avg, -0.43 ms RenderThreadTime Avg, -0.12 ms RHIThreadTime Avg, +0.6 DynRes % Avg, and +18 MemFreeMB Min.
- Added support for recording and replaying FMemBlock allocations. Courtesy to Ben for providing most of the code.
- Small adjustment to how MemBlockStat_Wasted is calculated. It now takes unused page space into account in addition to alignment paddings.
- 2 MB GPU page is enabled by default but can be disabled through a project define.
#rb luke.thatcher, ben.woodhouse
#ROBOMERGE-AUTHOR: jian.ru
#ROBOMERGE-SOURCE: CL 19065260 via CL 19065261 via CL 19065262 via CL 19083385 via CL 19084250 via CL 19086050
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)
[CL 19124776 by jian ru in ue5-main branch]
Adds a define UE_FNAME_OUTLINE_NUMBER.
Removes of FName, FMinimalName from memory image support. Adds of FMemoryImageName.
Removal of FMinimalName operator<<, all fields made private, size made variable.
All fields of FScriptName made private.
Added console commands for dumping numbered/unnumbered names and stats.
#rb johan.torp
#ROBOMERGE-OWNER: robert.millar
#ROBOMERGE-AUTHOR: robert.millar
#ROBOMERGE-SOURCE: CL 19058026 via CL 19058611 via CL 19058656 via CL 19061727 via CL 19061740 via CL 19064047
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v918-19018356)
[CL 19066701 by robert millar in ue5-main branch]
Clear caches and update a canary value across the fork boundary to avoid touching pages that were allocated pre-fork to minimize unnecessary duplication of shared pages.
Savings depend on pre-fork fragmentation/slack and number of concurrent child processes.
#rb louisphilippe.seguin, johan.torp, arciel.rekman
#ROBOMERGE-OWNER: robert.millar
#ROBOMERGE-AUTHOR: robert.millar
#ROBOMERGE-SOURCE: CL 19057122 via CL 19057644 via CL 19057693 via CL 19057718 via CL 19057737 via CL 19059617
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v918-19018356)
[CL 19066314 by robert millar in ue5-main branch]
#ROBOMERGE-AUTHOR: ben.woodhouse
#ROBOMERGE-SOURCE: CL 18847479 via CL 18848589 via CL 18848624 via CL 18854020 via CL 18854481
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v910-18824042)
[CL 18854518 by ben woodhouse in ue5-main branch]
- this change prevents gauntlet from running tasks on Xbox so I am backing it out
- instance of Horde failure: https://horde.devtools.epicgames.com/job/61f43b2f74510448a686da51?step=72cc
- the XboxConsoleInputReader thread is created and immediately terminates
- this change introduced a null out of Runnable in the Xbox version of FRunnableThreadWin::Run()
- this causes FRunnableThread::SetupCreatedThread() to assert on startup that a valid runnable thread was created but has no Runnable
#rb none
#preflight 61f47fb6801201ab389bb311
[FYI] ionut.matasaru
Original CL Desc
-----------------------------------------------------------------
[Insights]
- Fixed memory tracking for an FRunnableThread to emit a free event when the thread ends.
- Fixed memory tracking for "ProgramSize" of loaded modules (dlls), to emit a free event when dll is unloaded.
#jira UE-140358
#rb Johan.Berg
#preflight 61f40923f628752a568b292b
#ROBOMERGE-AUTHOR: eric.mcdaniel
#ROBOMERGE-SOURCE: CL 18781656 in //UE5/Release-5.0/... via CL 18781895 via CL 18781943
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)
[CL 18781953 by eric mcdaniel in ue5-main branch]
- Fixed parsing of Trace.Start/Trace.File console command params to correctly detect "file path" and "list of channels" parameters.
- Fixed Trace.Disable to not save anymore the previous enabled channels as "paused" preset.
- Fixed Trace::Connect (Tarce.Send, Trace.File) to not resume paused channels anymore.
#jira UE-140495
#rb none
#preflight 61f448837a7f0d39ddf2d923
#ROBOMERGE-AUTHOR: ionut.matasaru
#ROBOMERGE-SOURCE: CL 18777275 in //UE5/Release-5.0/... via CL 18778397 via CL 18778925
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)
[CL 18778961 by ionut matasaru in ue5-main branch]
- Fixed memory tracking for an FRunnableThread to emit a free event when the thread ends.
- Fixed memory tracking for "ProgramSize" of loaded modules (dlls), to emit a free event when dll is unloaded.
#jira UE-140358
#rb Johan.Berg
#preflight 61f40923f628752a568b292b
#ROBOMERGE-AUTHOR: ionut.matasaru
#ROBOMERGE-SOURCE: CL 18771801 in //UE5/Release-5.0/... via CL 18771806 via CL 18771881
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)
[CL 18771891 by ionut matasaru in ue5-main branch]
#preflight 61f40bd6241aeec8655410c0
#ROBOMERGE-AUTHOR: johan.berg
#ROBOMERGE-SOURCE: CL 18771777 in //UE5/Release-5.0/... via CL 18771791 via CL 18771877
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)
[CL 18771890 by johan berg in ue5-main branch]
Using auto connect would always enable default channel, even if started with a specific channel. Also renamed internal type to avoid confusion with TraceLog's FChannel.
#rb ionut.matasaru
#preflight 61f40a3074510448a6818204
#ROBOMERGE-AUTHOR: johan.berg
#ROBOMERGE-SOURCE: CL 18771519 in //UE5/Release-5.0/... via CL 18771526 via CL 18771686
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)
[CL 18771706 by johan berg in ue5-main branch]
In order to avoid scopes ending up after thread end (rare) clear the thread buffer pointer. In that case a new thread buffer will created, specifically for that scope.
#rb ionut.matasaru
#preflight 61eaaff35f04f4cdf1bae9bd
#ROBOMERGE-AUTHOR: johan.berg
#ROBOMERGE-SOURCE: CL 18688576 in //UE5/Release-5.0/... via CL 18688580 via CL 18688590
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)
[CL 18688595 by johan berg in ue5-main branch]
Trace normally runs with a worker thread to write data regularly, however when `FPlatformProcess:SupportsMultithreading` was false we did not start the worker thread, instead we relied on EndFrame delegate to manually pump Trace. When tracing is very intense (e.g. memory tracing) could lead to data building up internally, up to 1 GB of data by the time the first frame callback came. We have recently added a special sync type packet in the stream to deal with edge cases related to late-connect, so analysis stalled until those came trough. However since the backlog of data has to be transmitted first, those sync packet ended up after the initial data. Analysis had to (very inefficiently) get trough that 1Gb of data before the first sync packet came through and events starts to appear.
With this change trace always start the worker thread (if we're intending to fork) regardless of the SupportsMultithreading setting.
#rb ionut.matasaru, ben.woodhouse
#ROBOMERGE-AUTHOR: johan.berg
#ROBOMERGE-SOURCE: CL 18675264 via CL 18675395 via CL 18675411 via CL 18675736 via CL 18675867 via CL 18675943
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v902-18672795)
[CL 18679793 by johan berg in ue5-main branch]
When starting a trace to a file, all relative paths should go to the Profiling directory, on Windows even paths that starts with '/'. Also cleaned up includes.
#rb ionut.matasaru
#jira UE-138824
#preflight 61e963e7817064a62d47ddc1
#ROBOMERGE-AUTHOR: johan.berg
#ROBOMERGE-SOURCE: CL 18673744 in //UE5/Release-5.0/... via CL 18673759 via CL 18673763
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v902-18672795)
[CL 18673770 by johan berg in ue5-main branch]
* An extra '&' token was removed on the type alias in the no logging case.
* In the case where trace is enabled, but logging is disabled, made a identical solution in TraceAuxImpl.
#rb ionut.matasaru
#jira UE-139439, UE-139433, UE-139444
#preflight 61e80742843acf1b2429961b
#ROBOMERGE-AUTHOR: johan.berg
#ROBOMERGE-SOURCE: CL 18657057 in //UE5/Release-5.0/... via CL 18657068 via CL 18657070
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v900-18638592)
[CL 18657072 by johan berg in ue5-main branch]
In order to be able to output detailed error and status messages to both core log or console feedback log depending on situation, add argument to set the target category. Also removed now redundant logs in console commands, since more detailed information is now emitted on the console feedback.
#preflight 61e56f34873f2ea48f23d007
#ROBOMERGE-OWNER: johan.berg
#ROBOMERGE-AUTHOR: johan.berg
#ROBOMERGE-SOURCE: CL 18632544 in //UE5/Release-5.0/... via CL 18633016 via CL 18633031
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v899-18417669)
#ROBOMERGE-CONFLICT from-shelf
[CL 18637343 by johan berg in ue5-main branch]
Append the default file name when the trace target path ends with a slash, for examplethe path "foo/bar/". The target trace file will then be "foo/bar/defaultname.utrace". Note that "foo/bar" will still target "foo/bar.utrace".
#jira UE-138824
#rb ionut.matasaru
#preflight 61e53ecd0c34e9a5ae5f838e
#ROBOMERGE-AUTHOR: johan.berg
#ROBOMERGE-SOURCE: CL 18631469 in //UE5/Release-5.0/... via CL 18631663 via CL 18631684
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v899-18417669)
[CL 18636673 by johan berg in ue5-main branch]
* Whenever starting a trace command (from the api or console command), reset the current command line list of channels.
* Don't assume default channels should be enabled if none are given. For command line arguments this will still be the case, but not console commands or the API.
* Emit log message when auto connecting.
#preflight 61e189669010dadd257b0e38
#ROBOMERGE-AUTHOR: johan.berg
#ROBOMERGE-SOURCE: CL 18617306 in //UE5/Release-5.0/... via CL 18617329 via CL 18617340
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v899-18417669)
[CL 18617352 by johan berg in ue5-main branch]