frm: use fps for motion rate
This commit is contained in:
@@ -55,8 +55,8 @@ FPS.Limit.Verbose=0
|
||||
TAA=1
|
||||
# Morphological Anti-Aliasing
|
||||
MLAA=1
|
||||
# FrameRateManager motion rate (multiplier percentage)
|
||||
FRM.Motion.Rate=500
|
||||
# FrameRateManager motion rate (fps)
|
||||
FRM.Motion.Rate=300
|
||||
|
||||
[Resolution]
|
||||
# 0 = Windowed, 1 = Borderless (Forced to desktop resolution), 2 = Fullscreen
|
||||
|
||||
@@ -174,7 +174,7 @@ ConfigOptionBase* optionsArray[] = {
|
||||
new BooleanOption(L"MLAA", GRAPHICS_SECTION, CONFIG_FILE, L"MLAA", L"Morphological Anti-Aliasing", true, false),
|
||||
new BooleanOption(L"FPS.Limit.LightMode", GRAPHICS_SECTION, CONFIG_FILE, L"Use Lightweight Limiter", L"Makes the FPS limiter use less CPU.\nMay have less consistent performance.", true, false),
|
||||
new NumericOption(L"FPS.Limit", GRAPHICS_SECTION, CONFIG_FILE, L"FPS Limit:", L"Allows you to set a frame rate cap. Set to -1 to unlock the frame rate.", 60, -1, INT_MAX),
|
||||
new NumericOption(L"frm.motion.rate", GRAPHICS_SECTION, CONFIG_FILE, L"FRM Motion Rate:", L"Sets the motion rate (multiplier percentage) for the Frame Rate Manager component.\nLarger=smoother, but more CPU intensive.", 500, 1, INT_MAX),
|
||||
new NumericOption(L"frm.motion.rate", GRAPHICS_SECTION, CONFIG_FILE, L"FRM Motion Rate:", L"Sets the motion rate (fps) for the Frame Rate Manager component.\nLarger values should be smoother, but more CPU intensive and possibly buggier.", 300, 1, INT_MAX),
|
||||
new OptionMetaSpacer(8),
|
||||
|
||||
new StringOption(L"command_line", LAUNCHER_SECTION, CONFIG_FILE, L"Command Line:", L"Allows setting command line parameters for the game when using the launcher.\nDisabling the launcher will bypass this.", L"", false),
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace TLAC::Components
|
||||
{
|
||||
std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> converter;
|
||||
std::wstring configPath = converter.from_bytes((TLAC::framework::GetModuleDirectory() + "/config.ini").c_str());
|
||||
float nMotionRate = GetPrivateProfileIntW(L"graphics", L"frm.motion.rate", 500, configPath.c_str());
|
||||
motionSpeedMultiplier = nMotionRate / 100.0f;
|
||||
float nMotionRate = GetPrivateProfileIntW(L"graphics", L"frm.motion.rate", 300, configPath.c_str());
|
||||
motionSpeedMultiplier = nMotionRate / 60.0f;
|
||||
}
|
||||
|
||||
FrameRateManager::~FrameRateManager()
|
||||
|
||||
Reference in New Issue
Block a user