Commit Graph

643 Commits

Author SHA1 Message Date
carl lloyd
742cd26994 Switching from mtlpp to Apple's MetalCPP library
- Mostly a straight port from mtlpp to MetalCPP
- The debug encoders have been removed in favour of Metal's built in encoder errors, these are always on in debug and development builds
- mtlpp had additional validation that we are now not implementing in the short term, but will revisit after some refactoring

#rb Zack.Neyland

[CL 29773146 by carl lloyd in ue5-main branch]
2023-11-16 05:04:37 -05:00
sebastian arleryd
9d33aff7c9 Resubmit: Move macOS main menu into UE window by default
* On the Mac, this change moves the Unreal Engine editor's main menu from the macOS system main menu into the editor window.
* Remove the CVAR Slate.MacMainMenuInsideUnrealWindow that previously turned this main menu move on or off on the Mac.
* Remove FGenericPlatformMisc::CanShowMenusInWindows because menus in the UE window is default on all platforms now. Note that this function was never released so we don't need to deprecate it (added after 5.3).

#jira UE-195597
[FYI] brooke.hubert, zack.neyland, sean.boocock

[CL 28964517 by sebastian arleryd in ue5-main branch]
2023-10-20 10:02:41 -04:00
zack neyland
92e2ddfef5 Mac: Change the default of Slate.MacMainMenuInsideUnrealWindow to true
[CL 28901011 by zack neyland in ue5-main branch]
2023-10-18 20:24:06 -04:00
sean boocock
d63e2bc9d7 [Backout] - CL28655756
[FYI] sebastian.arleryd
Original CL Desc
-----------------------------------------------------------------
Move macOS main menu into UE window by default

* On the Mac, this change moves the Unreal Engine editor's main menu from the macOS system main menu into the editor window.
* Remove the CVAR Slate.MacMainMenuInsideUnrealWindow that previously turned this main menu move on or off on the Mac.
* Remove FGenericPlatformMisc::CanShowMenusInWindows because menus in the UE window is default on all platforms now. Note that this function was never released so we don't need to deprecate it (added after 5.3).

#jira UE-195597
#rb brooke.hubert, zack.neyland

[CL 28671864 by sean boocock in ue5-main branch]
2023-10-11 13:38:43 -04:00
sebastian arleryd
88bb455dc2 Move macOS main menu into UE window by default
* On the Mac, this change moves the Unreal Engine editor's main menu from the macOS system main menu into the editor window.
* Remove the CVAR Slate.MacMainMenuInsideUnrealWindow that previously turned this main menu move on or off on the Mac.
* Remove FGenericPlatformMisc::CanShowMenusInWindows because menus in the UE window is default on all platforms now. Note that this function was never released so we don't need to deprecate it (added after 5.3).

#jira UE-195597
#rb brooke.hubert, zack.neyland

[CL 28655765 by sebastian arleryd in ue5-main branch]
2023-10-11 04:21:29 -04:00
sebastian arleryd
f618e67a9c Add CVAR to move Mac main menu into UE window
* Add the Mac-only CVAR Slate.MacMainMenuInsideUnrealWindow (ignored on other platforms). When it's false (default) there should be no user-visible difference. When true, Slate will draw (most of) the main menu inside the Unreal windows instead of using the macOS system main menu bar at the top of the screen.
* Expose the value of the CVAR via a new function FPlatformMisc::CanShowMenusInWindows(). This always returns true on non-Mac platforms.
* Remove unused code in SDockingTabStack.cpp.
* Improve spacing between tabs and close/min/max buttons in the title bar of smaller windows on the Mac.

#jira UE-186873

[CL 27759699 by sebastian arleryd in ue5-main branch]
2023-09-11 13:18:04 -04:00
zack neyland
62436d2317 Apple: Update runtime to macos 11 and clean up warnings from doing that.
#jira UE-193947

[CL 27387471 by zack neyland in ue5-main branch]
2023-08-25 15:04:47 -04:00
rafa lecina
49b76464d2 Made some MacPlatformProcess methods related to retrieving directories common for iOS
[REVIEW] [at]Bertrand.Carre, [at]Adam.Kinge
#jira UE-166445

[CL 26117410 by rafa lecina in ue5-main branch]
2023-06-20 07:01:56 -04:00
andriy tylychko
9e8b314eb1 made ApplicationWillTerminateDelegate thread-safe: deprecated FCoreDelegates::ApplicationWillTerminateDelegate (because thread-safe delegates can't be statically initialised) and added FCoreDelegates::GetApplicationWillTerminateDelegate() accessor for a thread-safe delegate
#rb francis.hurteau

[CL 25926515 by andriy tylychko in ue5-main branch]
2023-06-12 07:58:54 -04:00
zack neyland
7876fde6f1 Mac: Add some sanity checking on CRC to make sure it actually exists and is executable.
#preflight na

[CL 25532649 by zack neyland in ue5-main branch]
2023-05-18 16:01:52 -04:00
zack neyland
ffea6ee581 Mac/Android/iOS: Replace UE4 string references with UE.
#preflight na

[CL 25527043 by zack neyland in ue5-main branch]
2023-05-18 12:29:12 -04:00
Steve Robb
d2dfb3ce9b Made FPlatformProcess::WritePipe() use proper UTF-8 conversion rather than truncation.
#rb stefan.boberg
#jira none
#preflight 643693c54c0cdaea093961f9

[CL 25005506 by Steve Robb in ue5-main branch]
2023-04-12 08:49:03 -04:00
devin doucette
dfac826723 Added PlatformManualResetEvent
This private abstraction is used to signal a single waiting thread to wake.
This first implementation is only specialized for Microsoft platforms. Other platforms will be specialized later.

#preflight 6418bc6a5d3e25354f1a2a5b
#rb Andriy.Tylychko, Zousar.Shaker
#rnx

[CL 24783341 by devin doucette in ue5-main branch]
2023-03-24 14:04:56 -04:00
bob tellez
c248e6e469 [Backout] - CLs 24735827, 24746530, 24750104, 24751543, 24752787, 24753773
[FYI] Devin.Doucette
Original CL Desc
-----------------------------------------------------------------
Added PlatformManualResetEvent

This private abstraction is used to signal a single waiting thread to wake.
This first implementation is only specialized for Microsoft platforms. Other platforms will be specialized later.

#preflight 6418bc6a5d3e25354f1a2a5b
#rb Andriy.Tylychko, Zousar.Shaker

[CL 24773885 by bob tellez in ue5-main branch]
2023-03-23 23:28:45 -04:00
devin doucette
65761e0543 Added PlatformManualResetEvent
This private abstraction is used to signal a single waiting thread to wake.
This first implementation is only specialized for Microsoft platforms. Other platforms will be specialized later.

#preflight 6418bc6a5d3e25354f1a2a5b
#rb Andriy.Tylychko, Zousar.Shaker

[CL 24739039 by devin doucette in ue5-main branch]
2023-03-21 16:38:00 -04:00
Matt Peters
0027082473 RequestExit Feedback: Add Callsite argument to FPlatformMisc::RequestExit
Add the argument to many but not all callsites.
#jira FORT-578919
#rnx
#rb Devin.Doucette
#preflight 6414ca9d691c5ebc15b30410

[CL 24696053 by Matt Peters in ue5-main branch]
2023-03-17 16:46:34 -04:00
Wojciech Krywult
188673fa32 Engine: Memory: Unified the behavior of FPlatformMemory::BaseAlllocator() between platforms. This function is allowed to be called multiple times now. It caches the created allocator the first time it's called and returns it in subsequent runs.
#preflight https://horde.devtools.epicgames.com/job/63ffedb4e96fa926fb76fe64
#rb David.Harvey
#rnx

[CL 24660068 by Wojciech Krywult in ue5-main branch]
2023-03-15 15:06:50 -04:00
yiliang siew
fcd448c4ac - Adding a new Settings parameter to a new FPlatformProcess::GetApplicationSettingsDir function for getting %appdata% in Windows, and $HOME in macOS/Linux.
This also allows for trimming the `Epic` path-specific components returned in the result. The default is to preserve the existing behaviour.
   #rb Josh.Adams
#preflight 6410ba96bd6894c4353f38dd

[CL 24646647 by yiliang siew in ue5-main branch]
2023-03-14 18:59:09 -04:00
Josh Adams
0c0874b782 - Added Platform/OS and Architecture to editor About box
#rb zack.neyland
#preflight 6409d2d1b0544ef0b42fde95

[CL 24574106 by Josh Adams in ue5-main branch]
2023-03-09 07:50:28 -05:00
calvin zheng
f5194d9ea5 Replace -[NSProcess operatingSystemVersion] with sysctlbyname()
#jira UE-133188
#rb Adam.Kinge, Josh.Adams, Zack.Neyland
#lockdown Rolando.Caloca
#preflight 640644808832f48a4dca3a4d

[CL 24530953 by calvin zheng in ue5-main branch]
2023-03-06 16:41:31 -05:00
danny couture
b91f0631df Collapse set of defines to enable TBB/Mimalloc to avoid wrong allocator fallback being mistakenly choosen
#rnx
#preflight 63b59753c6265e21bc63603f
#rb Johan.Torp

[CL 23576101 by danny couture in ue5-main branch]
2023-01-04 10:50:39 -05:00
sarah noonan
1a993b9ada *Remove per-frame caching of stats from FPlaformMemory::GetStats and move caching into helper function.
*Update common callers of FPlaformMemory::GetStats to use the helper.
[REVIEW] [at]matt.peters

[CL 22596606 by sarah noonan in ue5-main branch]
2022-10-18 07:22:43 -04:00
evgenii babinets
528585a552 Merging with resolved conflicts on behalf of sarah.noonan. Original CL description:
*Make FPlatformMemory::GetStats cache memory stats per frame to prevent multiple costly platform calls per frame ( by default, has option to request non-cached values ).
*Update some calls to FPlatformMemory::GetStats to specifically request non-cached values.
[REVIEW] [at]evgenii.babinets [at]andrew.ladenberger


#preflight 634a04c0907f4749392d75d0

[CL 22545788 by evgenii babinets in ue5-main branch]
2022-10-14 21:13:08 -04:00
robert seiver
3834d0cab8 Replaced the (commented out) line making the write pipe non-blocking with a comment
#fyi Brandon.Schaefer, Josh.Adams
#preflight none

[CL 22006750 by robert seiver in ue5-main branch]
2022-09-14 10:12:12 -04:00
Josh Adams
ae0776b338 - Fixed MacPlatformProcess child write pips to block so it doesn't blow the buffer for spammy comands
- Fixed Mac Perforce exe location discovery code for when there are multiple p4's found
#rb brandon.schaefer
#preflight 6321074729254beccb943f5f

[CL 21995231 by Josh Adams in ue5-main branch]
2022-09-13 18:50:03 -04:00