Commit Graph

21 Commits

Author SHA1 Message Date
jeff newquist
45350930a3 Remove NDA platform define references
#jira none
#rb rolando.caloca, david.harvey
#preflight 62880af3d1384beadd4de28b

[CL 20332798 by jeff newquist in ue5-main branch]
2022-05-23 13:53:51 -04:00
ilya loshchinin
4b58a73582 Added support for using FramePro profiling scopes in MallocBinned2 allocator: added a separate memory allocator for FramePro, added support for TArrays to use a different base malloc, rather than FMemory.
#rb louisphilippe.seguin, robert.millar
#tests automatic and manual FramePro captures of Squads games on Linux in WSL2 and cloud hardware (m5.4)

#ROBOMERGE-AUTHOR: ilya.loshchinin
#ROBOMERGE-SOURCE: CL 19091015 via CL 19094278 via CL 19095759 via CL 19101834
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19141844 by ilya loshchinin in ue5-main branch]
2022-02-25 00:09:54 -05:00
David Harvey
2254540898 remove PLATFORM_XBOXONE from FramePro code.
#jira UECON-543
#rnx
#rb eric.mcdaniel, nuno.leiria

[CL 16329306 by David Harvey in ue5-main branch]
2021-05-14 10:11:29 -04:00
nuno leiria
2c698d658b Upgrade FramePro to version 1.10.10
#rb brian.white
#preflight 6081a5c8590e4a000108adbc

[CL 16095787 by nuno leiria in ue5-main branch]
2021-04-22 14:06:37 -04:00
Rolando Caloca
5b82f15def Copying //UE4/Dev-RenderPlat-Staging@11388153 to //UE4/Main
#rb none
#rnx

[CL 11388545 by Rolando Caloca in Main branch]
2020-02-12 13:27:19 -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
Juan Canada
f396f56a0b Merging //UE4/Dev-Main@11042002 to Dev-RenderPlat-Staging(//UE4/Dev-Rendering)
#rnx
#rb none

[CL 11075443 by Juan Canada in Dev-RenderPlat-Staging branch]
2020-01-21 14:54:20 -05:00
jordan cristiano
5a0b8c9cd7 Added framepro.lScopeMinTimeMicroseconds to control the minimum recorded scope duration per platform.
framepro.ScopeMinTimeMicroseconds only applies when using framepro.startrec (not when captuing externally with the framepro ui or starting a capture through code).
Also got rid of framepro.startrecscopeoverride.

Set the default min scope to 25us.
Switch is set to 50us.
PC and Mac are set to 10us.

#rb andrew.ladenberger


#ROBOMERGE-SOURCE: CL 10955317 via CL 10972181 via CL 10972341
#ROBOMERGE-BOT: (v632-10940481)

[CL 10972518 by jordan cristiano in Main branch]
2020-01-13 19:34:13 -05:00
jordan cristiano
fa0fa0ddca Fixed compile error introduced by CL 8497721 when modifying FramePro headers along with adaptive unity builds.
#error Platform must defined FRAMEPRO_GET_CLOCK_COUNT
and friends.

#rb ben.marsh


#ROBOMERGE-SOURCE: CL 10954319 via CL 10954401 via CL 10954426
#ROBOMERGE-BOT: (v632-10940481)

[CL 10954440 by jordan cristiano in Main branch]
2020-01-13 14:16:14 -05:00
Juan Canada
2ecf4f9708 Merging //UE4/Dev-Main@10877709 to Dev-RenderPlat-Staging(//UE4/Dev-Rendering)
#rnx
#rb none

[CL 10895568 by Juan Canada in Dev-RenderPlat-Staging branch]
2020-01-07 13:45:01 -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
ben marsh
a6cc4468b7 More IncludeTool fixes.
#rb none
#jira
#rnx

#ROBOMERGE-OWNER: ben.marsh
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 8371085 in //UE4/Release-4.23/...
#ROBOMERGE-BOT: RELEASE (Release-4.23 -> Main) (v406-8472469)

[CL 8497721 by ben marsh in Main branch]
2019-09-04 15:28:59 -04:00
joe barnes
9272ea7b09 [FramePro] Fix thread leak and tls crash.
#rb david.harvey


#ROBOMERGE-SOURCE: CL 7095051 via CL 7095055 via CL 7105342
#ROBOMERGE-BOT: (v367-6836689)

[CL 7105385 by joe barnes in Main branch]
2019-06-20 11:10:17 -04:00
Jeff Fisher
bcc5bcf128 Copying //UE4/Dev-VR to Main (//UE4/Main)
-Copy up for 4.23
#rb none

[CL 6911980 by Jeff Fisher in Main branch]
2019-06-10 12:22:13 -04:00
david harvey
72575e254e [FramePro] update to the latest version of FramePro runtime integration code (1.5.15.0)
#rb anthony.bills
[FYI] james.golding


#ROBOMERGE-SOURCE: CL 6533184 via CL 6533221

[CL 6533223 by david harvey in Main branch]
2019-05-16 06:18:28 -04:00
bart hawthorne
aff05b5769 Modify framepro's connection changed callback to pass the filename
#rb david.harvey


#ROBOMERGE-SOURCE: CL 5668849 via CL 5668853 via CL 5668859 via CL 5668860 via CL 5669280

[CL 5669311 by bart hawthorne in Main branch]
2019-04-01 11:14:13 -04:00
Ben Marsh
7598af0532 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

[CL 4662404 by Ben Marsh in Main branch]
2018-12-14 13:41:00 -05:00
Ben Marsh
ea340d3fbf Copying //UE4/Fortnite-Staging to Dev-Main (//UE4/Dev-Main)
#rb none
#lockdown Nick.Penwarden

[CL 4567513 by Ben Marsh in Main branch]
2018-11-14 19:05:13 -05:00
Marc Audy
af90b7bcd4 Copying //UE4/Fortnite-Staging to Dev-Main (//UE4/Dev-Main) @ 4395008
#rb
#rnx
#lockdown Nick.Penwarden

[CL 4395058 by Marc Audy in Main branch]
2018-09-25 10:11:35 -04:00
Luke Thatcher
0d4895e8e7 Copying //UE4/Dev-Console to //UE4/Dev-Main (Source: //UE4/Dev-Console @ 4070461)
#lockdown Nick.Penwarden
#rb none

============================
  MAJOR FEATURES & CHANGES
============================

Change 3751378 by Ben.Woodhouse

	Integrate from //UE4/Main/...@3748735 to //UE4/Dev-Console/...

Change 3807818 by Ben.Woodhouse

	Integrate from //UE4/Main/...@3803271 to //UE4/Dev-Console/...

Change 3818577 by Ben.Woodhouse

	Integrate from //UE4/Main/...@3812936 to //UE4/Dev-Console/...

Change 3726554 by Luke.Thatcher

	[CONSOLE] [+] Improved Scoped Named Events
	 - Added SCOPED_NAMED_EVENT(_FSTRING/_TEXT/_F) macros to allow use of string literals, FString and printf in scoped named event strings.
	 - Replaced explicit use of FPlatformMisc::Begin/EndNamedEvent throughout the engine with macros, so the events can be compiled out.
	 - Fixed performance issues on various platforms with named events. SCOPED_NAMED_EVENT macros were not considering whether the platform uses wide or ansi char strings.

Change 3813513 by Ben.Woodhouse

	CSV profiler refactor+ bug fix
	- Move the CSV profiler to core, so we can use it in modules other than engine
	- Profiler no longer enqueues RT commands - this is handled by a new core delegate type
	- Make begin/end requests more robust, enqueued via a command queue and processed in order
	- Defer end capture requests by a frame. This ensures stats on threads other than the gamethread (e.g. renderthread etc) are complete, so the last frame is not truncated
	- Fix long-standing bug with multiple captures where old/stale frames would appear in the first <128 frames of captures
	- Move unit stats and dynamic resolution out of the profiler itself and into the engine. Only frametime is recorded in the profiler now
	- Fix longstanding bug in first frame renderthread time in the engine

Change 3814039 by Ben.Woodhouse

	More Csvprofiler improvements
	- Event support (via CSV_EVENT macros). These appear in the "EVENTS" column of the CSV and can be used to add context to the stat data
	- Reduced memory overhead for timestamps through bit-packing (now 16 bytes per marker instead of 24), and splitting stats into different types

Change 3814229 by Ben.Woodhouse

	Integrate + refactor of CL 3792591 to reduce complexity and fix bugs

	Original changelist description:
	CSV profiler improvements:
	- The CSV profiler is now always compiled in on the server
	- The CSV profiler can now handle both int32 and float stats
	- In BeginCapture, the function can take additional arguments for some customization of filenames

	Fixes to the above:
	 - Remove FCustomValue class
	    - Fixes bug where all timestamp values from CSV_SCOPED_STATs were garbage (due to issues resulting from FCustomValue type ambiguity when adding values together)
	    - FCsvCustomStat now just uses simple union + bitfield flag to reduce size and complexity (4 bytes instead of 8 per value)
	    - FCsvColumn class modified to use doubles, which can represent both ints and floats without loss of precision - this class is not memory or time critical
	 - Replace multiple overrides used by the server for filenameprefix/folder/postfix etc with a single FilenameOverride

Change 3817339 by Ben.Woodhouse

	Duplicate from 3816641: CSV profiler improvements
	- Added a low-pri processing thread to compress raw timing data into a much more efficient format
	   - Reduces memory usage for 15 minute 30k frame capture with GPU stats enabled from 110MB to 3.4MB
	   - Processing time : 0.1ms per frame
	- Improved name handling for char literal stats. We now use the string as the ID rather than the pointer so multiple stat uses of the same name string apply only to  a single stat
	- Reworked thread data access to eliminate locking for anything time-critical. Frame boundaries now handled via a lock-free helper class
	-  Fixed bug with queue implementation where 1 in 128 reads would duplicate the last block of stat data
	-  Reduced #include dependencies for CSVProfiler.h
	-  Removed AccumulateMax because it doesn't work, and implementing properly would add a lot of complexity
	-  Added a simple test harness

Change 3827787 by Ben.Woodhouse

	Integrate-as-edit CL 3820678 from Fortnite/Main
	Allow the CSV Profiler to be compiled in to shipping dedicated server builds

Change 3827842 by Ben.Woodhouse

	Integrate-as-edit CL 3827079 from Fortnite/Main
	CSV profiler category support

Change 3840185 by Ben.Woodhouse

	Integrate from //UE4/Release-4.19/...@3840005 to //UE4/Dev-Console/...

Change 3861618 by Ben.Woodhouse

	Integrate from //UE4/Release-4.19/...@3860990 to //UE4/Dev-Console/...

Change 3901590 by Anthony.Bills

	Fix incorrect srv and sampler count when an array of textures or an array of samplers is used.

	- The code originally set the local variable BindCount but did not pass this to the total sampler or srv count and instead used the original BindDesc.BindCount (which will be 1) and still skipped over those resource indicies.
	- The code also checked for the array's bracket location but then only compared the resource names before the bracket, meaning non arrays could be included.

Change 3904065 by Anthony.Bills

	Allow easily increasing the maximum number of SRVs to 64 in the D3D12RHI.

	- Increasing to 64 will fix shader compilation issues when using more than 32 textures.
	- Casting has been added to correct the type on bitshifting the masks when the type changes.
	- A new type has been added for the bound VB mask to make sure bitshifting is explicitly typed.

Change 3905752 by Ben.Woodhouse

	Integrate from //UE4/Release-4.19/...@3904082 to //UE4/Dev-Console/...

Change 3920080 by Luke.Thatcher

	[CONSOLE] [+] Added .natvis visualizer for FRHICommandList, which expands the list links to a flat list of commands. To use this, add an FRHICommandList* to your watch window.

Change 3951698 by Keith.Judge

	Fix CIS (leftover debugging code)

	#jira UE-55443

Change 3953261 by Luke.Thatcher

	[CONSOLE] [^] Merging //UE4/Release-4.19 (CL 3944462) to Dev-Console (//UE4/Dev-Console)

Change 3971144 by Luke.Thatcher

	[CONSOLE] [^] Merging //UE4/Dev-Main (CL 3964322) to Dev-Console (//UE4/Dev-Console)
	 - First merge since Dev-Console was reparented back to Dev-Main.

Change 3992843 by Anthony.Bills

	Fix deploying to the default device in UAT.

Change 4010029 by Marcin.Undak

	ShooterGame: use console UI on Quail platform

Change 4010030 by Marcin.Undak

	RecordPerformance: don't fail if game crashes

Change 4012181 by Marcin.Undak

	Implemented Low Level Memory tracker for Unix platforms

Change 4039094 by Ben.Woodhouse

	[INTEGRATE] Integrate from //UE4/Main/...@4039044 to //UE4/Dev-Console/...

Change 4039598 by David.Harvey

	adding LLM hooks for bespoke platform-specific memory tracking tools.

Change 4042637 by Arciel.Rekman

	Merging //UE4/Dev-Main@4042226 to Dev-Console (//UE4/Dev-Console)

Change 4044679 by Marcin.Undak

	RecordPerformance: store logs from runs

Change 4045895 by Marcin.Undak

	Vulkan: added log when compiling new PSO

Change 4047096 by Ian.Fox

	#ShooterGame - Potential fix for ShooterGame friendslist empty issue

	#review-4046664

Change 4048332 by Marcin.Undak

	Compilation fix for Oculus. Ported Rolando's change from Dev-Rendering

Change 4051609 by Marcin.Undak

	Compilation fix

Change 4053542 by Joe.Barnes

	Integrate as edit:

	Faster Guid creation. Don't check time for every Guid (it's slow on some platforms). Check it once, then use that + CPU timer.

Change 4057462 by Luke.Thatcher

	[CONSOLE] [-] Remove "frame rate smoothing" override on console.
	 - This was arbitrarily forced on when vsync is enabled.
	 - It can still be enabled via the bSmoothFrameRate in UEngine if needed.

	(merge as edit CL 3891390 from //Fortnite/Release-3.0.0 to //UE4/Dev-Console)

Change 4057551 by Luke.Thatcher

	[CONSOLE] [~] Improvements to game thread hitch detection.
	 - Allows the system to be configured by ini files.
	 - Fixes callstack addresses being truncated to 32 bits.
	 - Removes memory allocation in hitch callstack logging code. We use a pre-allocated 64KB buffer for this now. This was a memory leak anyway, as the memory was never freed.
	 - Performs a throwaway gamethread stack dump on launch, to prime the stack walker so we don't make gameplay hitches worse than they otherwise would be.

	#jira FORT-78417

	(merge as edit CL 3967234 from //Fortnite/Main to //UE4/Dev-Console)

Change 4057562 by Luke.Thatcher

	[CONSOLE] [~] Increase verbosity on FlushAsyncLoading logging. Higher verbosity limited to once per frame, to avoid log spam.

	#jira FORT-77411

	(merge as edit CL 3967336 from //Fortnite/Release-3.4 to //UE4/Dev-Console)

Change 4057568 by Luke.Thatcher

	[CONSOLE] [+] Add async load flush analytics stats.

	#jira FORT-80229

	(merge as edit CL 3986900 from //Fortnite/Release-3.5 to //UE4/Dev-Console)

Change 4057590 by Luke.Thatcher

	[CONSOLE] [+] Add hang detector duration multiplier to allow extending the hang timeout on loading screens etc.

	#jira FORT-80325

	(merge as edit CL 3990275 from //Fortnite/Release-3.5 to //UE4/Dev-Console)

Change 4057679 by Luke.Thatcher

	[CONSOLE] [WIN64] [~] Modify hitch detector stack walking to avoid expensive symbol lookups. Stack walk now only prints the return addresses without symbol information.
	 - Old behaviour of performing full symbol resolution can be achieved by defining LOOKUP_SYMBOLS_IN_HITCH_STACK_WALK to 1.
	 - Also fixed a minor bug in CaptureStackTraceHelper which duplicates the last line if stack walking fails.

	#jira FORT-87620

	(merge as edit CL 4049361 from //Fortnite/Release-4.1 to //UE4/Dev-Console)

Change 4057779 by Luke.Thatcher

	[CONSOLE] [~] Refactored how the default LLM categories are defined.
	 - Prevents initialization order problems which stops early boot code from getting group name strings.

	#jira FORT-80324

	(partial merge as edit CL 4057155 from //Fortnite/Main to //UE4/Dev-Console)

Change 4059809 by Luke.Thatcher

	[CONSOLE] [!] Fix compiler warning (incorrect order of member initializers in FGameThreadHitchHeartBeat)

Change 4060781 by Luke.Thatcher

	[CONSOLE] [!] Fix for XGE control worker hanging around after killing the editor from Visual Studio.
	 - Reused the "XGE monitor" mode of shader compile worker, that the old XGE compiler used.
	 - The monitor watches the editor process and automatically terminates the build if the editor exits.

	#jira UE-55864

Change 4063641 by David.Harvey

	remove legacy "r.AmbientOcclusionSampleSetQuality" cvar from ini files (deleted in CL 2622264)... gets rid of warning in log.

	#jira UE-51256

Change 4067367 by Ben.Woodhouse

	Edigrate dev rendering CL 4062236:
	AppleTV doesn't appear to support the set*Bytes APIs in Metal.

	#jira UE-58580

Change 4067748 by Arciel.Rekman

	Fix editor build (a plugin also needs private VulkanRHI headers, heh).

Change 4068121 by Arciel.Rekman

	Correct paths to referenced directories for Linux.

	- Should help CIS.

Change 4069919 by Arciel.Rekman

	Fix Lumin build (another plugin needs private Vulkan headers, grrr).

[CL 4070552 by Luke Thatcher in Main branch]
2018-05-14 09:49:35 -04:00
Marc Audy
7a0f229e8d Copying //UE4/Fortnite-Staging to //UE4/Dev-Main (Source: //Fortnite/Main/Engine @ 3876564)
#lockdown Nick.Penwarden
#rnx
#rb none

[CL 3903710 by Marc Audy in Main branch]
2018-02-22 11:25:06 -05:00