Skip to content

Commit

Permalink
Config overhaul
Browse files Browse the repository at this point in the history
Signed-off-by: Gregory <tajemniktv@outlook.com>
  • Loading branch information
tajemniktv committed Nov 13, 2024
1 parent 476a572 commit 243ac89
Show file tree
Hide file tree
Showing 30 changed files with 1,228 additions and 556 deletions.
18 changes: 12 additions & 6 deletions Config/Engine.ini
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,12 @@ gc.MultithreadedDestructionEnabled = 1
;PhysXTreeRebuildRate=10
;PriorityAsyncLoadingExtraTime=15.000000

;pool.light.lightshaft.count= ;(Default: 100) - CSS: number of light shaft instances allowed
;pool.light.lightshaft.relevancy= ;(Default: 10) - CSS: number of light shaft instances allowed
;pool.fogplanes.count= ;(Default: 100) - CSS: Number of active fog planes allowed
pool.light.count = 500
pool.light.relevancyMultiplier = 10

; ================================================================================
; START OF
; ================================================================================
Expand Down Expand Up @@ -368,8 +374,8 @@ r.AOGlobalDistanceField.MinMeshSDFRadius = 10 ;Default: , Alternatives: 5
; ================================================================================

r.AutoExposure.IgnoreMaterials.LuminanceScale = 0.25 ;Default: 0.18
r.AutoExposure.IgnoreMaterials.UsePrecalculatedIlluminance = false ;Default: 1
r.AutoExposure.IgnoreMaterials = true ;Default: 0
r.AutoExposure.IgnoreMaterials.UsePrecalculatedIlluminance = 0 ;Default: 1
r.AutoExposure.IgnoreMaterials = 1 ;Default: 0

; ================================================================================
; START OF
Expand Down Expand Up @@ -789,7 +795,7 @@ r.SkinCache.Allow = true
r.SkinCache.CompileShaders = 1

bEnableRayTracing = true
r.RayTracing = True
;r.RayTracing = True
r.Lumen.HardwareRayTracing.LightingMode = 2 ;alternatives: 1
r.Lumen.HardwareRayTracing = True
;r.RayTracing.GlobalIllumination.FireflySuppression=1
Expand All @@ -801,8 +807,8 @@ r.Lumen.HardwareRayTracing = True
; START OF
; ================================================================================

r.Streaming.PoolSize = 4096
r.Streaming.LimitPoolSizeToVRAM = 0
;r.Streaming.PoolSize = 4096
r.Streaming.LimitPoolSizeToVRAM = 1
;r.Streaming.ParallelRenderAssetsNumWorkgroups=4
;r.Streaming.UseFixedPoolSize=1

Expand Down Expand Up @@ -882,7 +888,7 @@ r.VT.TileSize = 128 ;Default: 128
; START OF
; ================================================================================

;sg.FoliageLoadDistance=2 ;alternatives: 4
;sg.FoliageLoadDistance=3 ;alternatives: 4
;sg.Globalillumination=4

; ================================================================================
Expand Down
3 changes: 2 additions & 1 deletion Config/PluginSettings.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[StageSettings]
+AdditionalNonUSFDirectories=Resources
+AdditionalNonUSFDirectories=Config
+AdditionalNonUSFDirectories=ContentLib
+AdditionalNonUSFDirectories=ContentLib
+AdditionalNonUSFDirectories = Plugins
Binary file modified Content/BP_RootGameInstance_TajsGraph.uasset
Binary file not shown.
Binary file modified Content/Config/BP_TajsGraph_Config.uasset
Binary file not shown.
Binary file modified Content/Config/BP_TajsGraph_ConfigStruct.uasset
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
101 changes: 87 additions & 14 deletions Source/BP_TajsGraph_ConfigStruct.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,46 +4,119 @@
#include "Engine/Engine.h"
#include "BP_TajsGraph_ConfigStruct.generated.h"

/* Struct generated from Mod Configuration Asset '/TajsGraph/Config/BP_TajsGraph_Config' */
struct FBP_TajsGraph_ConfigStruct_PoolLightSection;
struct FBP_TajsGraph_ConfigStruct_ShadowsSection;
struct FBP_TajsGraph_ConfigStruct_LumenSection;
struct FBP_TajsGraph_ConfigStruct_OtherSection;
struct FBP_TajsGraph_ConfigStruct_DevSection;
struct FBP_TajsGraph_ConfigStruct_LumenSection_AsyncLumenSection;

USTRUCT(BlueprintType)
struct FBP_TajsGraph_ConfigStruct {
struct FBP_TajsGraph_ConfigStruct_LumenSection_AsyncLumenSection {
GENERATED_BODY()
public:
UPROPERTY(BlueprintReadWrite)
bool enableVSM{};
bool AsyncIndirectLighting{};

UPROPERTY(BlueprintReadWrite)
bool enableLumen{};
bool AsyncReflections{};

UPROPERTY(BlueprintReadWrite)
bool enableAsyncLumenDI{};
bool AsyncSceneLighting{};
};

USTRUCT(BlueprintType)
struct FBP_TajsGraph_ConfigStruct_PoolLightSection {
GENERATED_BODY()
public:
UPROPERTY(BlueprintReadWrite)
bool enableAsyncLumenReflections{};
float LightPoolRelevancy{};

UPROPERTY(BlueprintReadWrite)
bool enableAsyncLumenLighting{};
int32 MaximumActiveLights{};
};

USTRUCT(BlueprintType)
struct FBP_TajsGraph_ConfigStruct_ShadowsSection {
GENERATED_BODY()
public:
UPROPERTY(BlueprintReadWrite)
bool enableVSMfarshadowculling{};
bool VirtualShadowMaps{};

UPROPERTY(BlueprintReadWrite)
bool enableScreenTraces{};
bool VSMFarShadowCulling{};
};

USTRUCT(BlueprintType)
struct FBP_TajsGraph_ConfigStruct_LumenSection {
GENERATED_BODY()
public:
UPROPERTY(BlueprintReadWrite)
FBP_TajsGraph_ConfigStruct_LumenSection_AsyncLumenSection AsyncLumenSection{};

UPROPERTY(BlueprintReadWrite)
bool Lumen{};

UPROPERTY(BlueprintReadWrite)
bool LumenScreenTraces{};

UPROPERTY(BlueprintReadWrite)
float LumenReflectionSmoothing{};

UPROPERTY(BlueprintReadWrite)
bool TranslucentSurfaceReflections{};
};

USTRUCT(BlueprintType)
struct FBP_TajsGraph_ConfigStruct_OtherSection {
GENERATED_BODY()
public:
UPROPERTY(BlueprintReadWrite)
bool GPUOcclusionQueries{};

UPROPERTY(BlueprintReadWrite)
bool EnhancedAutoExposure{};
};

USTRUCT(BlueprintType)
struct FBP_TajsGraph_ConfigStruct_DevSection {
GENERATED_BODY()
public:
UPROPERTY(BlueprintReadWrite)
int32 OctRes{};

UPROPERTY(BlueprintReadWrite)
bool EnableDLSSFG{};

UPROPERTY(BlueprintReadWrite)
bool EnableReflex{};

UPROPERTY(BlueprintReadWrite)
int32 MaxFPS{};

UPROPERTY(BlueprintReadWrite)
int32 ScreenResolution{};
};

/* Struct generated from Mod Configuration Asset '/TajsGraph/Config/BP_TajsGraph_Config' */
USTRUCT(BlueprintType)
struct FBP_TajsGraph_ConfigStruct {
GENERATED_BODY()
public:
UPROPERTY(BlueprintReadWrite)
bool enableHardwareRayTracing{};
FBP_TajsGraph_ConfigStruct_PoolLightSection PoolLightSection{};

UPROPERTY(BlueprintReadWrite)
bool enableVRS{};
FBP_TajsGraph_ConfigStruct_ShadowsSection ShadowsSection{};

UPROPERTY(BlueprintReadWrite)
bool enableMeshStreaming{};
FBP_TajsGraph_ConfigStruct_LumenSection LumenSection{};

UPROPERTY(BlueprintReadWrite)
bool enableTransFrontLayer{};
FBP_TajsGraph_ConfigStruct_OtherSection OtherSection{};

UPROPERTY(BlueprintReadWrite)
float reflectionSmoothness{};
FBP_TajsGraph_ConfigStruct_DevSection DevSection{};

/* Retrieves active configuration value and returns object of this struct containing it */
static FBP_TajsGraph_ConfigStruct GetActiveConfig(UObject* WorldContext) {
Expand Down
10 changes: 5 additions & 5 deletions TajsGraph.uplugin
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"FileVersion": 3,
"Version": 2,
"VersionName": "2.0.0",
"VersionName": "2.1.2",
"FriendlyName": "Taj's Graphical Overhaul",
"Description": "Get ready to see every pipe and every constructor in eye-popping detail. Crank up those graphics and make efficiency look sexy!",
"Category": "Modding",
Expand All @@ -18,10 +18,10 @@
{
"Name": "SML",
"Enabled": true,
"SemVersion": "^3.8.0"
}
],
"SemVersion": "2.0.0",
"SemVersion": "^3.8.0"
}
],
"SemVersion": "2.1.2",
"GameVersion": ">=365306",
"RequiredOnRemote": false
}
3 changes: 1 addition & 2 deletions starlight/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"recommendations": [
"astro-build.astro-vscode",
"stripe.markdoc-language-support"
"astro-build.astro-vscode"
],
"unwantedRecommendations": []
}
18 changes: 9 additions & 9 deletions starlight/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Starlight Starter Kit: Markdoc
# Starlight Starter Kit: Tailwind

[![Built with Starlight](https://astro.badg.es/v2/built-with-starlight/tiny.svg)](https://starlight.astro.build)

```
npm create astro@latest -- --template starlight/markdoc
npm create astro@latest -- --template starlight/tailwind
```

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/starlight/tree/main/examples/markdoc)
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/starlight/tree/main/examples/markdoc)
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/withastro/starlight&create_from_path=examples/markdoc)
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fwithastro%2Fstarlight%2Ftree%2Fmain%2Fexamples%2Fmarkdoc&project-name=my-starlight-docs&repository-name=my-starlight-docs)
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/starlight/tree/main/examples/tailwind)
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/starlight/tree/main/examples/tailwind)
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/withastro/starlight&create_from_path=examples/tailwind)
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fwithastro%2Fstarlight%2Ftree%2Fmain%2Fexamples%2Ftailwind&project-name=my-starlight-docs&repository-name=my-starlight-docs)

> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
Expand All @@ -27,13 +27,13 @@ Inside of your Astro + Starlight project, you'll see the following folders and f
│ │ └── config.ts
│ └── env.d.ts
├── astro.config.mjs
├── markdoc.config.mjs
├── package.json
├── tailwind.config.mjs
└── tsconfig.json
```

Starlight looks for `.md`, `.mdx` or `.mdoc` files in the `src/content/docs/` directory. Each file is exposed as a route
based on its file name.
Starlight looks for `.md` or `.mdx` files in the `src/content/docs/` directory. Each file is exposed as a route based on
its file name.

Images can be added to `src/assets/` and embedded in Markdown with a relative link.

Expand Down
47 changes: 24 additions & 23 deletions starlight/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
import {defineConfig} from 'astro/config';
import starlight from '@astrojs/starlight';
import markdoc from '@astrojs/markdoc';
import tailwind from '@astrojs/tailwind';

// https://astro.build/config
export default defineConfig({
integrations: [
markdoc(),
starlight({
title: 'My Docs',
social: {
github: 'https://github.com/withastro/starlight',
},
sidebar: [
{
label: 'Guides',
items: [
// Each item here is one entry in the navigation menu.
{label: 'Example Guide', slug: 'guides/example'},
],
},
{
label: 'Reference',
autogenerate: {directory: 'reference'},
},
],
}),
],
integrations: [
starlight({
title: 'Docs with Tailwind',
social: {
github: 'https://github.com/withastro/starlight',
},
sidebar: [
{
label: 'Guides',
items: [
// Each item here is one entry in the navigation menu.
{label: 'Example Guide', slug: 'guides/example'},
],
},
{
label: 'Reference',
autogenerate: {directory: 'reference'},
},
],
customCss: ['./src/tailwind.css'],
}),
tailwind({applyBaseStyles: false}),
],
});
7 changes: 0 additions & 7 deletions starlight/markdoc.config.mjs

This file was deleted.

Loading

0 comments on commit 243ac89

Please sign in to comment.