Commit Graph

82 Commits

Author SHA1 Message Date
Devin Doucette
3045e3c75f Logging: Changed CanBeUsedOnPanicThread() to return false by default
The previous default of CanBeUsedOnAnyThread() proved unsafe since some output devices can safely be used on any thread but cannot safely be used during a crash. CanBeUsedOnAnyThread() was used pre-5.1 to control serialization to an output device during a crash, but optimizations in 5.1 have uncovered that some of these were never safe.

#preflight 62856506614041edb7a6de4b
#rb Zousar.Shaker
#rnx

[CL 20280354 by Devin Doucette in ue5-main branch]
2022-05-19 10:39:18 -04:00
ben hoffman
ff61d48be3 Linux Application: Replace uses of the old "int32 ControllerID" in favor of the new platform input device mapper. The new input device mapper will still call the old CoreDelegates until they are deprecated/removed, so there is no behavioral change here. Using the platform input device mapper will allow us to pass specific Input Device ID's around to slate and the game, so that we can properly route input events to and from specific devices
#jira UE-147796
#rb Brandon.Schaefer
#preflight 62741ca6ca0ad32a968784c7

[CL 20062913 by ben hoffman in ue5-main branch]
2022-05-05 15:24:21 -04:00
robert seiver
c68adb3c60 Added support for IsGamepadAttached on Linux
#jira UE-33266
#rb Brandon.Schaefer
#fyi @Brandon.Schaefer
#preflight 625d8814d4124345879dcf9f

[CL 19786909 by robert seiver in ue5-main branch]
2022-04-18 12:12:28 -04:00
Brandon Schaefer
a13924564a Fix UngrabImpl not tearing down barries, and not disabling relative mode
#jira UE-138019
#review @Robert.Seiver
#rb Robert.Seiver
#preflight none

[CL 19771808 by Brandon Schaefer in ue5-main branch]
2022-04-15 12:07:31 -04:00
Michael Sartain
4d2efde0f4 Make FLinuxConsoleOutputDevice::Serialize Thread Safe
Set CanBeUsedOnAnyThread() to true and move to single printf in Serialize

#rnx
#jira UE-147459
#review-19549147 @Brandon.Schaefer, @Robert.Seiver
#preflight none

[CL 19549852 by Michael Sartain in ue5-main branch]
2022-03-29 17:19:42 -04:00
Brandon Schaefer
7d0478a607 Avoid double output when running with -stdout enabled
This does use LaunchEngineLoops output over Linux which means with -stdout no color coded warning/error messages

#jira none
#rb Michael.Sartain, Rober.Seiver
#preflight none

[CL 19074484 by Brandon Schaefer in ue5-main branch]
2022-02-22 12:01:59 -05:00
robert seiver
a755cd34ca Linux windows now have a reasonable minimum size, and no longer can be scaled down to 1 pixel wide/tall
#jira UE-141121
#review-19040600 Brandon.Schaefer, Michael.Sartain
#preflight 620eae5d007519628d226210

[CL 19041491 by robert seiver in ue5-main branch]
2022-02-17 15:50:27 -05:00
Michael Sartain
bcfb02e2d4 Fix UnrealLightmass spewing UE_LOGs to console for Linux
Add bIsWindowShown option to Linux Console Output Device
Default to true to match old behavior.
Add -nostdout by default in UnrealLightmass

#rb Brandon.Schaefer
#jira none
#preflight trivial

[CL 18817282 by Michael Sartain in ue5-main branch]
2022-02-01 18:14:33 -05:00
marc audy
6553e6cd0a Remove as much C++ deprecation as possible up to 4.17 (along with a few scattered removals from beyond)
#preflight 61eefc77ba69a4fdb220bf23

#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 18712765 in //UE5/Release-5.0/... via CL 18712784 via CL 18713147
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18713191 by marc audy in ue5-main branch]
2022-01-24 15:07:48 -05:00
michael sartain
fc17b3213c Fix FLinuxWindow::IsPointInWindow to include X=0, Y=0 points
#jira UE-92715
#preflight trival
[REVIEW] [at]Brandon.Schaefer, [at]Robert.Seiver

#ROBOMERGE-AUTHOR: michael.sartain
#ROBOMERGE-SOURCE: CL 18675857 in //UE5/Release-5.0/... via CL 18675983 via CL 18676014
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v902-18672795)

[CL 18679831 by michael sartain in ue5-main branch]
2022-01-20 15:28:25 -05:00
brandon schaefer
a15bfb36a1 Tooltips can now accept input at times. So if we are a Tooltip type ignore checking the AcceptsInput def
#jira UE-136781
#rb none
#preflight none

#ROBOMERGE-AUTHOR: brandon.schaefer
#ROBOMERGE-SOURCE: CL 18652153 in //UE5/Release-5.0/... via CL 18652172 via CL 18652189
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v900-18638592)

[CL 18652217 by brandon schaefer in ue5-main branch]
2022-01-18 18:57:51 -05:00
michael sartain
8b549c779f Linux SDL 2.0.18 Update
Plus cherry-pick these commits from SDL main:

  f39e155 [release-2.0.18] Fixed undefined behavior in SDL_memset() (thanks andrewrk!)
  74ee7c0 Fixed potential buffer overflow in YUV conversion
  52e4e52 autotools, cmake: tighten Xfixes check && explicitly test BarrierEventID

Switch SDL_ConfineCursor calls to new SDL_SetWindowMouseRect SDL2 functionality**

** Hat tip Ethan Lee

[at]Brandon.Schaefer
#jira none
#preflight 61dc62c42e0e436c72901f1b

#ROBOMERGE-AUTHOR: michael.sartain
#ROBOMERGE-SOURCE: CL 18561443 in //UE5/Release-5.0/... via CL 18561451
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v899-18417669)

[CL 18561471 by michael sartain in ue5-release-engine-test branch]
2022-01-10 12:21:30 -05:00
ben zeigler
7c70bdebb8 #jira UE-125298 First set changes for distinguishing between platform user id and controller/input id
Change FPlatformUserId into a proper struct with an internal id that will be allocated by the platform
Converting int->FPlatformUserId is currently deprecated, but the other direction is not deprecated until the online/input code can be converted
GenericApplicaitonMessageHandler will convert back and forth between controller Id and FPlatformUserId as needed
Add support for platform user id to LocalPlayer, by default it is synchronized with ControllerId
#rb david.harvey, ben.hoffman

#ROBOMERGE-AUTHOR: ben.zeigler
#ROBOMERGE-SOURCE: CL 17597808 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v871-17566257)

[CL 17597827 by ben zeigler in ue5-release-engine-test branch]
2021-09-22 13:39:56 -04:00
geoff evans
b353e75c60 FApp::HasFocus() API to unify checking focus state
This is a defensive change to more uniformly gate conditions of various pathways that want to "nice" CPU consumption when the application is not the foreground application (doesn't "Have Focus"). In benchmarking scenarios we don't want a focus-grabbing application to cause change in behavior while taking performance measurements. This could be in local workstation benchmarking where other foreground apps will naturally come to the front or in data center build where antics that might otherwise be completely unknowable could impact benchmark measurements.

This change was formulated after finding some "nice" CPU conditionals that were instrumented, but not all of them are. This change aims to prevent having to instrument, profile, and mitigate each condition separately.

#rnx
#jira none
#rb francis.hurteau, brandon.schaefer
#preflight 611ec9248ff55400018d5018

#ROBOMERGE-AUTHOR: geoff.evans
#ROBOMERGE-SOURCE: CL 17463345 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v870-17433530)

[CL 17463757 by geoff evans in ue5-release-engine-test branch]
2021-09-08 16:59:42 -04:00
michael sartain
5285bc13e4 Linux SDL 2.0.16 Update
Switch SDL_SetKeyboardGrab to SDL_SetWindowKeyboardGrab
  Add SDL_ConfineCursor to dynapi_overrides

Hat tip Ethan Lee

#jira none
#rb Brandon.Schaefer
[at]Brandon.Schaefer

#ROBOMERGE-SOURCE: CL 17252629 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v855-17104924)

[CL 17252653 by michael sartain in ue5-release-engine-test branch]
2021-08-20 16:13:06 -04:00
michael sartain
7141fd5c7c Update Linux SDL2 library from 2.0.12 to 2.0.16
#jira none
[at]Brandon.Schaefer, [at]James.Singer
#rb Brandon.Schaefer, James.Singer

#ROBOMERGE-SOURCE: CL 17215198 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v855-17104924)

[CL 17217992 by michael sartain in ue5-release-engine-test branch]
2021-08-18 13:34:27 -04:00
dmytro vovk
bbe295d1b4 Fixed compilation
#rb none
#jira none

#ROBOMERGE-SOURCE: CL 17038982 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v848-17036448)

[CL 17038991 by dmytro vovk in ue5-release-engine-test branch]
2021-08-03 17:16:10 -04:00
robert seiver
cb9e272d25 Linux now dispatches OnControllerConnectionChange when gamepad is connected/disconnected.
#jira UE-25696
#rb Brandon.Schaefer

#ROBOMERGE-SOURCE: CL 16831480 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935)

[CL 16831488 by robert seiver in ue5-release-engine-test branch]
2021-07-12 17:04:04 -04:00
robert seiver
9a55868146 Accommodated SEditableText assumptions about Num Lock and Numpad Keys to match Windows
Fixed Blueprint node movement bug caused by similar assumption in SGraphPanel

#rb Brandon.Schaefer
#jira UE-83163

#ROBOMERGE-SOURCE: CL 16712589 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16712636 by robert seiver in ue5-release-engine-test branch]
2021-06-17 17:40:53 -04:00
matt hoffman
e5bf2fd2b6 Matinee: Misc cleanup (code comment changes, etc.)
#jira UE-105313
#rb Trivial
#preflight 60cb86666092ba00014e413d

#ROBOMERGE-SOURCE: CL 16708963 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16708979 by matt hoffman in ue5-release-engine-test branch]
2021-06-17 14:57:48 -04:00
brandon schaefer
8ce02c22cb Fix up LinuxSplashScreen changes
#jira UE-99406
#rb none
[FYI] Matt.Kuhlenschmidt, Michael.Sartain
#lockdown cristina.riveron

#ROBOMERGE-SOURCE: CL 15925984 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v786-15839533)

[CL 15926032 by brandon schaefer in ue5-main branch]
2021-04-05 21:44:25 -04:00
matt kuhlenschmidt
fd2d59745e Updated windows splash screen. Mac and Linux may not look correct but will be fixed by engineers familar with those platforms
[FYI] louise.rasmussen

#ROBOMERGE-SOURCE: CL 15919682 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v786-15839533)

[CL 15921227 by matt kuhlenschmidt in ue5-main branch]
2021-04-05 15:05:46 -04:00
rolando caloca
be099b06aa UE5EA - Remove ue4 reference
#rb trivial
#jira UE-112109

#ROBOMERGE-SOURCE: CL 15883241 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v786-15839533)

[CL 15889281 by rolando caloca in ue5-main branch]
2021-04-01 10:44:17 -04:00
brandon schaefer
16d0451f59 Remove window size hack
#jira none
#rb none
[FYI] Michael.Sartian

#ROBOMERGE-SOURCE: CL 15502110 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v771-15082668)

[CL 15503755 by brandon schaefer in ue5-main branch]
2021-02-23 15:17:11 -04:00
Marc Audy
4c1bb11c29 Merge UE5/Release-Engine-Staging to UE5/Main @ 14548662
This represents UE4/Main @ 14525125 + cherrypicked fixes
#skipundocheck

[CL 14551026 by Marc Audy in ue5-main branch]
2020-10-22 19:19:16 -04:00