#lockdown Nick.Penwarden
#rb none
==========================
MAJOR FEATURES + CHANGES
==========================
Change 3209340 on 2016/11/23 by Ben.Marsh
Convert UE4 codebase to an "include what you use" model - where every header just includes the dependencies it needs, rather than every source file including large monolithic headers like Engine.h and UnrealEd.h.
Measured full rebuild times around 2x faster using XGE on Windows, and improvements of 25% or more for incremental builds and full rebuilds on most other platforms.
* Every header now includes everything it needs to compile.
* There's a CoreMinimal.h header that gets you a set of ubiquitous types from Core (eg. FString, FName, TArray, FVector, etc...). Most headers now include this first.
* There's a CoreTypes.h header that sets up primitive UE4 types and build macros (int32, PLATFORM_WIN64, etc...). All headers in Core include this first, as does CoreMinimal.h.
* Every .cpp file includes its matching .h file first.
* This helps validate that each header is including everything it needs to compile.
* No engine code includes a monolithic header such as Engine.h or UnrealEd.h any more.
* You will get a warning if you try to include one of these from the engine. They still exist for compatibility with game projects and do not produce warnings when included there.
* There have only been minor changes to our internal games down to accommodate these changes. The intent is for this to be as seamless as possible.
* No engine code explicitly includes a precompiled header any more.
* We still use PCHs, but they're force-included on the compiler command line by UnrealBuildTool instead. This lets us tune what they contain without breaking any existing include dependencies.
* PCHs are generated by a tool to get a statistical amount of coverage for the source files using it, and I've seeded the new shared PCHs to contain any header included by > 15% of source files.
Tool used to generate this transform is at Engine\Source\Programs\IncludeTool.
[CL 3209342 by Ben Marsh in Main branch]
#lockdown Nick.Penwarden
#rb none
==========================
MAJOR FEATURES + CHANGES
==========================
Change 2883376 on 2016/02/26 by Max.Chen
Sequencer: Refactored track instance API to better deal with invalid object bindings (fixes UE-27286)
Change 3117044 on 2016/09/07 by Max.Chen
Cine Camera: Add GetCineCameraComponent function from Cine Camera Actor.
#jira UE-34036
Change 3117127 on 2016/09/07 by Max.Preussner
MediaAssets: File media source path improvements
Change 3117128 on 2016/09/07 by Max.Preussner
PS4Media: Copied memory allocator fixes (CL# 3114158)
Change 3117142 on 2016/09/07 by Max.Preussner
MediaPlayerEditor: Normalizing paths of drag & drop media files
Change 3117143 on 2016/09/07 by Max.Preussner
Media: Made media player name accessible via IMediaPlayer
Change 3117161 on 2016/09/07 by Max.Preussner
PS4Media: Fixed CPU/GPU may crash due to race condition in destructor (UE-35696)
Copied from Release-4.13 CL# 3117159
Change 3117184 on 2016/09/08 by Max.Chen
Sequencer: Update sequencer selection on undo so that the sequencer selection stays in sync with the scene selection.
Clear cached set of spawned objects in the spawn register only for spawned objects, rather than completely. This fixes an issue where deleting a selected spawnable and then undoing doesn't restore the
spawnable as selected because the cached spawned objects gets cleared wholesale.
#jira UE-27683
Change 3117831 on 2016/09/08 by Max.Chen
Sequencer: Add option to create sub sequences for each master sequence shot.
#jira UE-35378
Change 3118467 on 2016/09/08 by Max.Preussner
Slate: ScrollyZoomy documentation cleanup pass
Change 3118468 on 2016/09/08 by Max.Preussner
MediaPlayerEditor: Added OriginalSize viewport mode (UE-35560)
#jira UE-35560
Change 3118700 on 2016/09/08 by Max.Preussner
Media: Removed still image tracks and sinks (UE-35767)
#jira UE-35767
Change 3118987 on 2016/09/09 by Max.Chen
Sequencer: Initialize player on post initialize components of level sequence actor. This is a speculative fix for GetSequencePlayer not initialized in Actor::BeginPlay before a Begin Play event in a level
blueprint is invoked.
#jira UE-34439
Change 3119896 on 2016/09/09 by Max.Preussner
MediaAssets: Logging URL when failing to validate media source
Change 3119921 on 2016/09/09 by Max.Preussner
MediaAssets: Verbose logging sink shutdown in media texture
Change 3120173 on 2016/09/09 by Max.Preussner
WmfMedia: Refactored playback topology handling to support multiple tracks & track switching
#jira UE-35383
#jira UE-35385
#jira UE-32582
Change 3120587 on 2016/09/11 by Max.Chen
Fbx Export: Fix double transforms on an exported mesh.
Added an option to map the skeletal motion to the root bone. In General Settings (Miscellaneous).
#jira UE-35174
Change 3120685 on 2016/09/11 by Max.Chen
Sequencer: Subtitles
#jira UE-35824
Change 3121957 on 2016/09/12 by Max.Preussner
MediaAssets: Replaced legacy texture sink shutdown code to fix race condition
Change 3122113 on 2016/09/12 by Max.Preussner
Media: Renamed Script track type to Text
Change 3122386 on 2016/09/13 by Max.Chen
Sequencer: Render movies with handles
#jira UETOOL-733
Change 3124278 on 2016/09/14 by Max.Chen
Sequencer: Add nullptr check for camera anim.
#jira UE-35911
Change 3127211 on 2016/09/15 by Max.Preussner
MediaAssets: Implemented Per-platform media player overrides in MediaAsset derived classes (UE-35478)
#jira UE-35478
Change 3127536 on 2016/09/15 by Max.Preussner
MediaAssets: Renamed platform player overrides property
#jira UE-35478
Change 3127539 on 2016/09/15 by Max.Preussner
MediaPlayerEditor: Implemented platform player overrides details customization for media assets (UE-35478)
#jira UE-35478
Change 3127614 on 2016/09/15 by Max.Preussner
MediaAssets: Fixed MediaSource serialization (UE-35478)
#jira UE-35478
Change 3127617 on 2016/09/15 by Max.Preussner
MediaAssets: Implemented PlatformMediaSource (UE-35387)
#jira UE-35387
Change 3127626 on 2016/09/15 by Max.Preussner
MediaAssets: Started to implement PlatformMediaSource customization (UE-35387)
#jira UE-35387
Change 3128686 on 2016/09/16 by Max.Preussner
WmfMedia: Added QuickTime to known video sub types
Change 3128703 on 2016/09/16 by Max.Preussner
WmfMedia: Fixed GuidToString printing incorrect byte sequence
Change 3128705 on 2016/09/16 by Max.Preussner
Core: Slightly more complicated unit test for TripleBuffer
Change 3129281 on 2016/09/16 by Max.Preussner
MediaPlayerEditor: Finished customization for PlatformMediaSource (UE-35387)
#jira UE-35387
Change 3129291 on 2016/09/16 by Max.Preussner
MediaAssets: Added verbose logging for dropped video frames
Change 3130495 on 2016/09/19 by Max.Preussner
PropertyEditor: Added missing forward declarations; code and documentation cleanup pass.
Change 3131531 on 2016/09/19 by Max.Preussner
Core: Accepting comma in milliseconds separator when parsing FTimespan
Change 3131533 on 2016/09/19 by Max.Preussner
Media: Started to implement subtitle support
Change 3132468 on 2016/09/20 by Max.Preussner
Core: Fixed TMap deserialization in struct serializer & updated unit tests
Change 3132846 on 2016/09/20 by Max.Preussner
SlateRemoteServer: Fixed Editor freezes and leaks memory when slate remote enabled (UE-35907)
#jira UE-35907
Change 3136577 on 2016/09/22 by Frank.Fella
Sequencer - Always use a unique name when creating dynamic material instances for animation to prevent reuse and resource issues.
Change 3136661 on 2016/09/22 by Max.Preussner
WmfMedia: Fixed memory leak while playing videos (UE-36289)
#jira UE-36289
Change 3137035 on 2016/09/22 by Cody.Albert
Changed FMovieScene3DTransformTrackInstance::Update to update ComponentVelocity
Change 3137155 on 2016/09/22 by Max.Preussner
MediaAssets: Added OpenFile method to MediaPlayer.
Change 3138413 on 2016/09/23 by Cody.Albert
Fixed ComponentVelocity to use UpdateData instead of FApp::GetDeltaTime()
Change 3138627 on 2016/09/23 by Max.Preussner
WmfMedia: Fixed FourCC types printing in reverse order
Change 3139020 on 2016/09/23 by Max.Preussner
MediaAssets: Fixed Crash when after playing media that requires a different conversion shader (UE-36393)
#jira UE-36393
Change 3139028 on 2016/09/23 by Max.Preussner
MediaPlayerEditor: Trimming leading & trailing whitespace in URL text box
Change 3139046 on 2016/09/23 by Max.Preussner
MediaPlayerEditor: Implemented statistics tab
#jira UE-35395
Change 3139072 on 2016/09/23 by Max.Preussner
MediaPlayerEditor: Stats and Info tab UI polish
Change 3142667 on 2016/09/27 by Max.Preussner
MediaAssets: Fixed serialization of older assets
Change 3142669 on 2016/09/27 by Max.Preussner
Automation: Allowing movie files to be renamed to match platform requirements
Merged from Fortnite-Main CL# 3140907
Change 3145836 on 2016/09/29 by andrew.porter
Adding and updating media framework test content
Change 3145920 on 2016/09/29 by tim.gautier
Added Media Audio actor to level QA-Media
Change 3145979 on 2016/09/29 by andrew.porter
Updating media player test content
Change 3146311 on 2016/09/30 by Andrew.Rodham
Sequencer: Fixed cursor jumping around inconsistently when ending a drag
- The time slider controller was using a mixture of GetScreenSpacePosition and GetLastScreenSpacePosition when calculating times. It now only uses the current screen position.
#jira UE-34738
Change 3147838 on 2016/09/30 by Max.Chen
Sequencer: Fix crash when rendering with handle frames = 0.
#jira UE-36708
Change 3147875 on 2016/10/01 by Max.Chen
Sequencer - Don't crash when a bool track or visibility track has a null runtime object.
#jira UE-36707
Change 3148176 on 2016/10/01 by Max.Chen
Sequencer: When keep playback range in section bounds, infinite sections should be bounded by their keyframe times.
#jira UE-36666
Change 3148824 on 2016/10/03 by Max.Preussner
Media: Continued to implement subtitle tracks
UpgradeNotes:
- caption tracks were split into captions, subtitles, and generic text tracks
- added IMediaOverlaySink
- IMediaOutput::SetCaptionSink renamed to SetOverlaySink
[CL 3149180 by Max Chen in Main branch]
Introduces the concept of "Active Ticking" to allow Slate to go to sleep when there is no need to update the UI.
While asleep, Slate will skip the Tick & Paint pass for that frame entirely.
- There are TWO ways to "wake" Slate and cause a Tick/Paint pass:
1. Provide some sort of input (mouse movement, clicks, and key presses). Slate will always tick when the user is active.
- Therefore, if the logic in a given widget's Tick is only relevant in response to user action, there is no need to register an active tick.
2. Register an Active Tick. Currently this is an all-or-nothing situation, so if a single active tick needs to execute, all of Slate will be ticked.
- The purpose of an Active Tick is to allow a widget to "drive" Slate and guarantee a Tick/Paint pass in the absence of any user action.
- Examples include animation, async operations that update periodically, progress updates, loading bars, etc.
- An empty active tick is registered for viewports when they are real-time, so game project widgets are unaffected by this change and should continue to work as before.
- An Active Tick is registered by creating an FWidgetActiveTickDelegate and passing it to SWidget::RegisterActiveTick()
- There are THREE ways to unregister an active tick:
1. Return EActiveTickReturnType::StopTicking from the active tick function
2. Pass the FActiveTickHandle returned by RegisterActiveTick() to SWidget::UnregisterActiveTick()
3. Destroy the widget responsible for the active tick
- Sleeping is currently disabled, can be enabled with Slate.AllowSlateToSleep cvar
- There is currently a little buffer time during which Slate continues to tick following any input. Long-term, this is planned to be removed.
- The duration of the buffer can be adjusted using Slate.SleepBufferPostInput cvar (defaults to 1.0f)
- The FCurveSequence API has been updated to work with the active tick system
- Playing a curve sequence now requires that you pass the widget being animated by the sequence
- The active tick will automatically be registered on behalf of the widget and unregister when the sequence is complete
- GetLerpLooping() has been removed. Instead, pass true as the second param to Play() to indicate that the animation will loop. This causes the active tick to be registered indefinitely until paused or jumped to the start/end.
[CL 2391669 by Dan Hertzka in Main branch]
Moved the existing atlas visualizer out of the Slate RHI renderer and instead made the resource manager for each renderer implement the ISlateAtlasProvider interface to provide information about its current texture atlases. FSlateFontCache implements ISlateAtlasProvider for the font atlas viewer.
Improved the atlas visualizer and added support for zooming and panning of the atlas pages. This helps greatly when viewing font atlases as they can be as large as 2048x2048.
#codereview Matt.Kuhlenschmidt
[CL 2371483 by Jamie Dale in Main branch]
* Moved Slate.h into SlateBasics.h and began shifting less commonly used headers into SlateExtras.h.
* Slate.h now simply includes SlateBasics.h and SlateExtras.h.
* Slate.h includes a deprecated warning now to indicate that SlateBasics.h + specific includes should be used instead.
* Moved dozens of inlined functions using Slate widgets into .cpp files to avoid header dependencies.
* All code samples now include SlateBasics.h and SlateExtras.h so future shifts will not break most those projects, but not trigger the deprecation warning of including Slate.h.
#BUN
[CL 2329610 by Wes Hunt in Main branch]
Also:
- NULL to nullptr
- removed redundant documentation
- consistent line spacing
- added/fixed comments
[CL 2239470 by Max Preussner in Main branch]
#proj core
#branch UE4
#summary Rename Trunc, Round, Floor, Ceil to TruncToInt, RoundToInt, FloorToInt, CeilToInt. Added *ToFloat versions. Repeated for FGenericPlatformMath and all derived classes for all platforms wherever applicable. Corrected comment in Fractional and added Frac() which does HLSL-style fractional (x - floor(x)). Checked for compilation on all projects (with cooking levels wherever applicable). Didn't change Fractional to Frac, this will be done in second commit.
#codereview robert.manuszewski
[CL 2064306 by Mikolaj Sieluzycki in Main branch]