Commit Graph

2840 Commits

Author SHA1 Message Date
Gil Gribb
f7c6ed3f83 UE4 - Improved the console performance of FBitReader.
[CL 2706228 by Gil Gribb in Main branch]
2015-09-25 11:32:40 -04:00
Steve Robb
5795ecafc3 Merging using Orion->UE4
CL# 2706133
Fat-free TArray and FString ranged-for iteration.

[CL 2706134 by Steve Robb in Main branch]
2015-09-25 10:28:59 -04:00
Allan Bentham
25c10bf77d UEMOB-36
Add material shader quality settings.
Enables quality overrides for android and ios (ES2 flavours)

#codereview jack.porter

[CL 2705914 by Allan Bentham in Main branch]
2015-09-25 04:55:45 -04:00
Dmitry Rekman
e37e785445 Linux: fix reporting memory stats (OR-7349, UE-9538).
#codereview Michael.Trepka

(Merging CL 2705697 to the main branch).

[CL 2705727 by Dmitry Rekman in Main branch]
2015-09-24 23:20:01 -04:00
Chris Babcock
18811f513c Support multiple gamepad controllers on Android including identifying Samsung EI-GP20 and input plugins
Adds ResetGamepadAssignments, ResetGamepadAssignmentToController, and IsControllerAssignedToGamepad to PlatformMisc and BP nodes
#jira UE-17956
#ue4
#android
#platformnotify Josh.Adams
#codereview Josh.Adams

[CL 2705582 by Chris Babcock in Main branch]
2015-09-24 21:03:00 -04:00
Dmitry Rekman
158b7a6a58 Add LIKELY/UNLIKELY macros for static branch prediction hinting.
#codereview Josh.Adams, Michael.Trepka, Chris.Babcock, Peter.Sauerbrei, Marcus.Wassmer

(Merging CL 2704512 to the main branch)

[CL 2704584 by Dmitry Rekman in Main branch]
2015-09-24 11:49:51 -04:00
Andrew Rodham
4316b5fc49 Added the concept of an 'arbitrary multiplier' unit
[CL 2704147 by Andrew Rodham in Main branch]
2015-09-24 07:30:17 -04:00
Andrew Rodham
2fc8234639 Changed verify to an ensure
This is a non-fatal error

[CL 2704042 by Andrew Rodham in Main branch]
2015-09-24 05:29:25 -04:00
Michael Schoell
de28759ddd Improvements to Find-in-Blueprints for variable nodes.
Properties in nodes can be marked as Blueprint searchable. Content will be gathered by FiB system for use in unloaded Blueprints on resave.

"Find References" on variables in the MyBlueprint list or on variable nodes is now more accurate.

Removed FEdGraphSchemaAction_K2AddCallOnVariable and FEdGraphSchemaAction_K2AddDocumentation, both unused in the editor and are a part of the old Blueprint menu system.

FMemberReference::SetSelfMember and FMemberReference::SetExternalMember support accepting a FGuid for the reference.

Variable nodes will assign their variable's Guid to their VariableReference
Added UK2Node::GetFindReferenceSearchString to find the search query for a node to find references to it, currently returns the node title for all nodes but variables (where it tries to do an advanced search to limit to only actual references to the same variable).

Can mark UProperties with metadata that informs the Find-in-Blueprint system to gather the property for searching. Currently FVariableReference in K2Node_Variable is the only thing gathered and only nodes are yet supported by this feature. Will expand to all objects contained within UBlueprint in the future.

When using Find-in-Blueprints, can use category names as functions to filter into child tags and values.

All Find-in-Blueprint data is now stored in an Asset Registry tag titled "FiBData" instead of "FiB", this is to support the new version feature.

#jira UE-21164 - Find-in-Blueprints needs an easier way of marking properties as searchable.

[CL 2702574 by Michael Schoell in Main branch]
2015-09-23 11:05:29 -04:00
Jamie Dale
ca9f01f55f Minimized FText allocations when generating text at runtime
This allows you to move the arguments passed to FText::Format if you know you no longer need your own copy (our internal helper Format functions now do this with their temporary data).

I'd previously claimed this was submitted as part of CL# 2702379, but found it as part of a different CL.

[CL 2702398 by Jamie Dale in Main branch]
2015-09-23 08:39:05 -04:00
Jamie Dale
c4db6b2cc6 Minimized FText allocations when generating text at runtime
FText used to always perform two allocations, one for the shared display string pointer, and another for the text history.

This change allows text that is generated at runtime (such as via FText::AsNumber) to allocate its string and history together in a single allocation. Profiling shows that this almost negates the cost of the text history, without having to remove the text history (which is essential for FText serialization).

This means that we never have to take the hit of a second allocation for text which is generated at runtime and never serialized. Should text that was generated at runtime be serialized, then it will call TGeneratedTextData::PersistText to perform the allocation of the shared display string pointer, and allow the text to be saved, gathered, and localized.

This change also removes some allocations from FTextHistory_Base and FFormatArgumentValue, makes the text history types fully movable, and allows you to move the arguments passed to FText::Format if you know you no longer need your own copy.

[CL 2702379 by Jamie Dale in Main branch]
2015-09-23 07:57:03 -04:00
Jamie Dale
63a39cbf09 Added some missing PLATFORM_SUPPORTS_STACK_SYMBOLS defines
Some platforms that implement stack walking weren't setting this to true, and there was also no default for platforms that don't support stack walking.

This define is only used when building with bUseMallocProfiler turned on.

ReviewedBy Gil.Gribb
#platformnotify Josh.Adams

[CL 2700520 by Jamie Dale in Main branch]
2015-09-22 09:52:02 -04:00
Gil Gribb
2497cba88b UE4 - Added stat DumpSpam command and avoid stat messages for no-op adds.
[CL 2698845 by Gil Gribb in Main branch]
2015-09-21 09:21:41 -04:00
Steve Robb
cbe5b79c73 Merging using Orion->UE4
CL# 2698724:
UHT speed improvements:

Code is now generated with tabs, rather than going through a separate Tabify step.
Some expensive temporaries created during iteration and during iteration have been removed.
FFunctionData::FunctionDataMap now uses unique ownership instead of shared ownership.
TCString::Spc (and the new TCString::Tab) now uses a compile-time array instead of one generated at runtime with a static.
TSet::Compact no longer rehashes if no compaction was performed.
TArray assignment no longer reallocs to the same capacity.

[CL 2698780 by Steve Robb in Main branch]
2015-09-21 07:53:49 -04:00
Jack Porter
33a51c03a7 UEMOB-32 - Support cooking various combinations of Android texture formats simultaneously
[CL 2698623 by Jack Porter in Main branch]
2015-09-21 01:23:29 -04:00
Dmitry Rekman
3e6290e814 Bunch of minor Linux cleanups and improvements.
- Mostly coming from MatthewL with changes.
- UE-19705 (getting MAC) - reworked to use ioctl
- UE-14633: IsFirstInstance is now a function on Linux
- UE-16061:dummy windows shouldn't be visible in the task bar.
- UE-18217 fixed.
- Unnecessary printf() removed.
- Set output to non-cached if running under debugger.

#platformnotify Josh.Adams

[CL 2698549 by Dmitry Rekman in Main branch]
2015-09-20 18:16:58 -04:00
Gil Gribb
0a5f746888 UE4 - Fixed smappy spin loop in new console mode task graph scheduling.
[CL 2698321 by Gil Gribb in Main branch]
2015-09-19 08:17:02 -04:00
Max Preussner
f1ffd33f2b SessionFrontend: Implemented session authorization for remote users
See SESSION console command for details. Some more updates are needed in Automation, Profiler, etc. to perform authorization on a per-instance instead of per-session basis.

#CodeReview: peter.sauerbrei

[CL 2698089 by Max Preussner in Main branch]
2015-09-18 19:16:15 -04:00
Daniel Lamb
b665c247cd Backed out save package warning.
[CL 2697995 by Daniel Lamb in Main branch]
2015-09-18 18:01:14 -04:00
Daniel Lamb
a2a44dc95f Missed file in my last checkin
[CL 2697963 by Daniel Lamb in Main branch]
2015-09-18 17:45:11 -04:00
Daniel Lamb
5194ff52af Added warning to cooker for resaving packages when they contain FText which has been promoted from FString / FName.
#codereview Justin.Sargent

[CL 2697687 by Daniel Lamb in Main branch]
2015-09-18 16:06:17 -04:00
Zak Middleton
d201bd5af7 #ue4 - Optimized FTransform::Equals(). Check translation first as it's a simpler test and more likely to differ. Scale3D test is now per-component rather than a dot product test versus tolerance.
--------
[AUTOMERGE] Integrated using branch ue4-to-ue4-orion (reversed) of change#2697265 by Zak.Middleton on 2015/09/18 13:29:11.

[CL 2697271 by Zak Middleton in Main branch]
2015-09-18 13:30:19 -04:00
Mark Satterthwaite
8dedbc3a9c Merging MetalRHI & MetalShaderFormat changes from ZebraBranch, plus the code to enable or disable Mac support.
[CL 2697221 by Mark Satterthwaite in Main branch]
2015-09-18 12:45:20 -04:00
Marc Audy
384be0a17e Fix spelling error in comment
[CL 2697201 by Marc Audy in Main branch]
2015-09-18 12:29:47 -04:00
Max Preussner
892b585091 Fixed WinXP build
[CL 2696867 by Max Preussner in Main branch]
2015-09-18 06:45:39 -04:00