From a3261dbcdc156bbfd7ae729e71a74796fbba0a91 Mon Sep 17 00:00:00 2001 From: Adnan Mujkic Date: Wed, 26 Aug 2026 18:52:17 +0200 Subject: [PATCH] Optimization and improvements, disable DFAO, enable SMAA by default, do not rotate the moon, it's stationary now --- Config/DefaultEngine.ini | 6 ++++-- Content/Scripts/BP_TimeOfDay.uasset | 4 ++-- Content/UI/OptionsScreen.uasset | 4 ++-- .../6/FJ/XSLZCCYW6P0XOLD701W2BA.uasset | 4 ++-- Source/ProjectEleri/Private/TimeOfDayManager.cpp | 15 ++++++++------- Source/ProjectEleri/Public/TimeOfDayManager.h | 3 +++ 6 files changed, 21 insertions(+), 15 deletions(-) diff --git a/Config/DefaultEngine.ini b/Config/DefaultEngine.ini index 06c6c013..9796fd33 100644 --- a/Config/DefaultEngine.ini +++ b/Config/DefaultEngine.ini @@ -137,7 +137,7 @@ r.SupportDepthOnlyIndexBuffers=True r.SupportReversedIndexBuffers=True r.SupportMaterialLayers=False r.LightPropagationVolume=False -r.AntiAliasingMethod=2 +r.AntiAliasingMethod=5 r.Mobile.AmbientOcclusion=True r.ReflectionMethod=2 r.DynamicGlobalIlluminationMethod=0 @@ -176,7 +176,7 @@ r.Shadow.Virtual.Enable=0 r.Velocity.EnableVertexDeformation=1 r.DepthOfFieldQuality=0 -r.AmbientOcclusion.Compute=1 +r.AmbientOcclusion.Compute= 3 r.VelocityOutputPass=1 r.AntiAliasingQuality=4 @@ -192,6 +192,8 @@ r.SSGI.Quality=4 r.VolumetricRenderTarget.Mode=1 r.VolumetricCloud.ViewRaySampleMaxCount=64 +r.DistanceFieldAO=0 + [/Script/LinuxTargetPlatform.LinuxTargetSettings] TargetArchitecture=X86_64UnknownLinuxGnu diff --git a/Content/Scripts/BP_TimeOfDay.uasset b/Content/Scripts/BP_TimeOfDay.uasset index 395ded3c..f953b7b3 100644 --- a/Content/Scripts/BP_TimeOfDay.uasset +++ b/Content/Scripts/BP_TimeOfDay.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9da19e6adaaf3e10426ebd292280151b908e7eff58898044b74de6eb7a30ba60 -size 490005 +oid sha256:625fa6583e43cbb1ad68b1146cfaca5b8d5924b836774e1a5062dd26a3cd109e +size 489159 diff --git a/Content/UI/OptionsScreen.uasset b/Content/UI/OptionsScreen.uasset index a8410c43..1697f7e7 100644 --- a/Content/UI/OptionsScreen.uasset +++ b/Content/UI/OptionsScreen.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a5f8968e82841be5fdbeb35466c91311ed470ae21d0b4acf9ccf6d777564a24a -size 1241492 +oid sha256:db799d986059a5122d1076a2b977c123a5f5fcf2b2b7db61c68e5bac174e7389 +size 1257003 diff --git a/Content/__ExternalActors__/Maps/Persistent_GameWorld/6/FJ/XSLZCCYW6P0XOLD701W2BA.uasset b/Content/__ExternalActors__/Maps/Persistent_GameWorld/6/FJ/XSLZCCYW6P0XOLD701W2BA.uasset index d0131f3b..3d1c0336 100644 --- a/Content/__ExternalActors__/Maps/Persistent_GameWorld/6/FJ/XSLZCCYW6P0XOLD701W2BA.uasset +++ b/Content/__ExternalActors__/Maps/Persistent_GameWorld/6/FJ/XSLZCCYW6P0XOLD701W2BA.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d310c878274df4cd12f029247d6772a510f4dbb462a747cf0a8f2b5265fb62e5 -size 21069 +oid sha256:43186b1bd5038fcc0029de032060fe9590ae5642d5f1c27f7578a61285555923 +size 21252 diff --git a/Source/ProjectEleri/Private/TimeOfDayManager.cpp b/Source/ProjectEleri/Private/TimeOfDayManager.cpp index da853581..7cf2852c 100644 --- a/Source/ProjectEleri/Private/TimeOfDayManager.cpp +++ b/Source/ProjectEleri/Private/TimeOfDayManager.cpp @@ -291,13 +291,6 @@ void ATimeOfDayManager::RotateSun(const float &_rotator) FRotator currentSunRotation = FRotator(FRotator::MakeFromEuler(currentRotInVectors)); sunLight->SetWorldRotation(currentSunRotation); } - if (moonLight->IsValidLowLevel()) - { - FVector currentRotInVectors = FVector( - 0.0f, CurrentWeatherPreset->MoonRotationCurve->GetFloatValue(FloatMinutes), 110.0f); - FRotator currentMoonRotation = FRotator(FRotator::MakeFromEuler(currentRotInVectors)); - moonLight->SetWorldRotation(currentMoonRotation); - } } void ATimeOfDayManager::SetDirectionalLightIntensity(const float &_rotator) @@ -482,6 +475,14 @@ void ATimeOfDayManager::ToggleTimeActive(bool bNewActive) TimeTicking = bNewActive; } +void ATimeOfDayManager::ToggleShadowsOnSkyLight(bool bActive) +{ + if (skyLight) + { + skyLight->SetCastShadows(bActive); + } +} + TArray ATimeOfDayManager::GetCalendarDataForMonth(int32 Month) { TArray Data; diff --git a/Source/ProjectEleri/Public/TimeOfDayManager.h b/Source/ProjectEleri/Public/TimeOfDayManager.h index c043c500..85d31b23 100644 --- a/Source/ProjectEleri/Public/TimeOfDayManager.h +++ b/Source/ProjectEleri/Public/TimeOfDayManager.h @@ -311,6 +311,9 @@ public: UFUNCTION(BlueprintCallable, Category = "Time of day") void ToggleTimeActive(bool bNewActive); + UFUNCTION(BlueprintCallable, Category = "Time of day") + void ToggleShadowsOnSkyLight(bool bActive); + UFUNCTION(BlueprintCallable, Category = "Time of day") TArray GetCalendarDataForMonth(int32 Month = 1);