Commit Graph

41 Commits

Author SHA1 Message Date
Michael Trepka
3293117f09 More fixes for Clang warnings
[CL 2238624 by Michael Trepka in Main branch]
2014-07-31 15:43:08 -04:00
Jaroslaw Surowiec
01e63dc6a4 Profiler - Fixed FPSChart
#codereview Robert.Manuszewski

[CL 2234399 by Jaroslaw Surowiec in Main branch]
2014-07-28 09:29:18 -04:00
Andrew Brown
0014d5ea64 Added analytics reporting to the profiler
#ttp 340626 - FIXIF: EDITOR: ANALYTICS: Profiler Usage Event

#branch UE4

#added Added analytics for tracking how long the profiler has been used for

#note It may have been possible to just use HasMouseCapture in the Tick, however this returns false if the tab isn't 'active' yet - so wouldn't count the time when a use is hovering over the window, mulling over their options.

[CL 2229948 by Andrew Brown in Main branch]
2014-07-24 10:55:05 -04:00
Nick Atamas
978a62ee0f Slate Hittesting 2.0 : Hittesting no longer bound to logical widget hierarchy.
Merged from usr/Nick.Atamas/UE4_SlateDev => /UE4

[CL 2228155 by Nick Atamas in Main branch]
2014-07-23 08:23:21 -04:00
Michael Trepka
f4438a0e55 Separate Control and Command keys on Mac; some editor shortcuts remapped to use Ctrl to free Cmd for Mac-specific shortcuts (Cmd+W, Cmd+M and Cmd+H)
[CL 2225709 by Michael Trepka in Main branch]
2014-07-21 13:10:16 -04:00
Andrew Brown
97baebcdae Asset View now supports secondary sorting
#UDN: Feature suggestion; Content browser can sort by a second column

#branch UE4

#change
Added two new images for secondary sort ascending and descending.
(Updated styles where needed).

Added new enum EColumnSortPriority: currently only lists Primary and Secondary, but can easily accommodate more*.
(FOnSortModeChanged was modified to also have the priority as a param, fixedup existing usage).

SHeaderRow now also has a SortPriority attribute to specify the SortMode order
(Defaults to Primary if unused).

Modified TUniquePtr so that assigning one from another worked correctly.
(Reviewed by Steve Robb).

SAssetView is the only table that has been modified, so far, to take advantage of the secondary sort. SetMajorityAssetType has been updated to correctly filter out all those sorts which are no longer relevant and bump the priority of the remaining sorts to fill in the ægapsÆ made by non-longer-relevant ones.

FAssetViewSortManager has been overhauled to take SortPriority into consideration when sortingà
Firstly, duplicate comparison structs were removed in favour of single structs which have æascendingÆ as a paramà any remaining duplicate code was removed in favour of an inherited usage. The base struct has an array of æfurther methodsÆ to employ in the result of a tie. Should a tie occur the ænextÆ comparison is done, and so on until itÆs not a tie or we run out of comparisons to perform.*
The manager defaults to having no secondary sort, so it relies on the interface thatÆs using it to provide it.
Whenever a column is assign the code makes sure that itÆs not already assigned to another column and corrects the order to take this into account.

Fixed a bug in FCompareFAssetItemByTagNumericalAscending comparing A with A (instead of B).
Various optimizations to the sort to descrease times

*The only places æSecondaryÆ is referred to in code is in GetSortingBrush (so it can display the correct icon for the sort), and OnTitleClicked (so it can set to correct sort based on input). The sorting code itself has no concept as to a secondary sort, it can support any number of sorting levels so if in future a tertiary (or more) is added, it is only these two function which should need updating as the sort will automatically accommodate it.

reviewed by Thomas.Sarkanen, Bob.Tellez

[CL 2119201 by Andrew Brown in Main branch]
2014-06-27 04:30:08 -04:00
Jaroslaw Palczynski
3a35a8dd0e Deprecate and remove checkAtCompileTime.
#ttp 337754
#codereview Robert.Manuszewski

[CL 2106862 by Jaroslaw Palczynski in Main branch]
2014-06-16 08:04:54 -04:00
Jaroslaw Palczynski
ebce413232 UE4 Refactoring. Changed OVERRIDE and FINAL macros to keywords override and final.
[CL 2104397 by Jaroslaw Palczynski in Main branch]
2014-06-13 06:14:46 -04:00
Max Preussner
3aece47882 Docs: Removed file comments and added missing code documentation
Please note that file comments had no purpose in nearly all cases and just added visual clutter. The two files that had meaningful file comments had their comments moved into the corresponding classes. There are still hundreds of file comments left in other files that will be removed over time.

Also cleaned up some random stuff along the way:
- relative paths to public headers within the same module are no longer necessary (automatically discovered by UBT now)
- header guards are deprecated, use #pragma once instead (all compilers support it now)
- space between multiple template brackets is no longer required (all compilers support >> now)
- NULL to nullptr, OVERRIDE to override
- spelling errors, whitespace, line breaks

[CL 2104067 by Max Preussner in Main branch]
2014-06-12 23:22:18 -04:00
Dmitry Rekman
5b887fb484 Linux: more changes for the editor.
From PR #140,  contributed by sbc100 and #ue4linux community.

[CL 2096299 by Dmitry Rekman in Main branch]
2014-06-05 17:11:45 -04:00
Jaroslaw Surowiec
78dcc42455 Stats - Stats files are now compressed, ratio for regular stats 30%, for raw stats 16%, misc code refactor and improvements
#codereview Robert.Manuszewski

[CL 2096003 by Jaroslaw Surowiec in Main branch]
2014-06-05 16:40:42 -04:00
Jaroslaw Surowiec
f9c258916c Profiler - Fixed an issue introduced by the recent shadow variable fixes
[CL 2095932 by Jaroslaw Surowiec in Main branch]
2014-06-05 12:16:37 -04:00
Jaroslaw Surowiec
7c6488776e Profiler - Disabled capture button because current implementation in the profiler service is not thread-safe
[CL 2095889 by Jaroslaw Surowiec in Main branch]
2014-06-05 12:15:47 -04:00
Marc Audy
83dcc2fe11 Shadow variable fixes
[CL 2094759 by Marc Audy in Main branch]
2014-06-04 15:11:29 -04:00
Jaroslaw Surowiec
59f4990063 Profiler - Raw stats files should use stored SecondsPerCycle, instead of the current one
[CL 2072221 by Jaroslaw Surowiec in Main branch]
2014-05-13 18:13:41 -04:00
Jaroslaw Surowiec
0b76f74d4a Profiler - Fixed a crash that may happen when loading a large stats file
[CL 2072085 by Jaroslaw Surowiec in Main branch]
2014-05-13 17:46:17 -04:00
Jaroslaw Surowiec
71628d5a60 Profiler - Disabled debug code
[CL 2070243 by Jaroslaw Surowiec in Main branch]
2014-05-12 08:42:36 -04:00
Dmitry Rekman
12ef084040 Removing debugging helpers that confuse people.
Contributed by UE4Linux community, part of PR 140.

#codereview Jaroslaw.Surowiec

[CL 2070222 by Dmitry Rekman in Main branch]
2014-05-12 08:41:28 -04:00
Jaroslaw Surowiec
01d1cdc57d Slate - Renamed FSlateRect.GetPosition to GetTopLeft (as per NickA's request)
[CL 2068033 by Jaroslaw Surowiec in Main branch]
2014-05-09 09:06:48 -04:00
Jaroslaw Surowiec
9b7e1e60b4 Profiler - Removed unused functionality, fixed bad formatting
[CL 2066921 by Jaroslaw Surowiec in Main branch]
2014-05-08 09:25:52 -04:00
Michael Trepka
3966b37293 Fixed Clang compile errors in SProfilerGraphPanel.cpp
#codereview Jaroslaw.Surowiec

[CL 2066915 by Michael Trepka in Main branch]
2014-05-08 09:15:50 -04:00
Jaroslaw Surowiec
7e585e1413 Profiler - Disabled debug code
[CL 2066874 by Jaroslaw Surowiec in Main branch]
2014-05-08 08:15:33 -04:00
Jaroslaw Surowiec
5da9559694 Profiler - Added first version of the thread view (to capture the data in the game use 'stat startfileraw')
#codereview Robert.Manuszewski

[CL 2066860 by Jaroslaw Surowiec in Main branch]
2014-05-08 08:00:35 -04:00
Jaroslaw Surowiec
e3d683d77a Profiler - Moved FBinaryFindIndex to a better place, fixed issue if used with the custom range
[CL 2064401 by Jaroslaw Surowiec in Main branch]
2014-05-06 09:22:15 -04:00
Jaroslaw Surowiec
a471de7299 Profiler - Removed handling the event OnViewModeChanged, it's not needed here atm
[CL 2064396 by Jaroslaw Surowiec in Main branch]
2014-05-06 09:17:13 -04:00