CARLA
Loading...
Searching...
No Matches
CarlaDeviceProfileSelectorModule.h
Go to the documentation of this file.
1// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma
2// de Barcelona (UAB).
3//
4// This work is licensed under the terms of the MIT license.
5// For a copy, see <https://opensource.org/licenses/MIT>.
6
7#pragma once
8
9#include "CoreMinimal.h"
10#include "Modules/ModuleManager.h"
11
12// Carla per-quality tier module. Loaded at LoadingPhase=PostConfigInit per
13// CarlaUnreal.uproject. Reads `-quality-level=<Tier>` from the command line,
14// resolves it case-sensitively against `Low / Medium / High / Epic`, falls
15// back to `Epic` when absent, selects the matching DefaultScalability.ini
16// bucket for every scalability group, and lowers the few CVars that
17// DefaultEngine.ini pins above scalability priority at
18// ECVF_SetByDeviceProfile. A FCoreDelegates::OnPostEngineInit
19// callback re-applies the tier scalability levels after
20// UGameUserSettings::ApplyNonResolutionSettings, so persisted
21// GameUserSettings.ini state cannot shadow the tier-selected buckets.
23public:
24
25 virtual void StartupModule() override;
26 virtual void ShutdownModule() override;
27};