2022-09-30 20:36:51 +00:00
|
|
|
#ifndef OPENMW_COMPONENTS_SETTINGS_CATEGORIES_LUA_H
|
|
|
|
#define OPENMW_COMPONENTS_SETTINGS_CATEGORIES_LUA_H
|
|
|
|
|
2023-11-01 22:34:54 +00:00
|
|
|
#include <components/settings/sanitizerimpl.hpp>
|
|
|
|
#include <components/settings/settingvalue.hpp>
|
2022-09-30 20:36:51 +00:00
|
|
|
|
|
|
|
#include <osg/Math>
|
|
|
|
#include <osg/Vec2f>
|
|
|
|
#include <osg/Vec3f>
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
#include <string>
|
|
|
|
#include <string_view>
|
|
|
|
|
|
|
|
namespace Settings
|
|
|
|
{
|
2023-04-10 15:24:57 +00:00
|
|
|
struct LuaCategory : WithIndex
|
2022-09-30 20:36:51 +00:00
|
|
|
{
|
2023-04-10 15:24:57 +00:00
|
|
|
using WithIndex::WithIndex;
|
|
|
|
|
|
|
|
SettingValue<bool> mLuaDebug{ mIndex, "Lua", "lua debug" };
|
|
|
|
SettingValue<int> mLuaNumThreads{ mIndex, "Lua", "lua num threads", makeEnumSanitizerInt({ 0, 1 }) };
|
|
|
|
SettingValue<bool> mLuaProfiler{ mIndex, "Lua", "lua profiler" };
|
|
|
|
SettingValue<std::uint64_t> mSmallAllocMaxSize{ mIndex, "Lua", "small alloc max size" };
|
|
|
|
SettingValue<std::uint64_t> mMemoryLimit{ mIndex, "Lua", "memory limit" };
|
|
|
|
SettingValue<bool> mLogMemoryUsage{ mIndex, "Lua", "log memory usage" };
|
|
|
|
SettingValue<std::uint64_t> mInstructionLimitPerCall{ mIndex, "Lua", "instruction limit per call",
|
2022-09-30 20:36:51 +00:00
|
|
|
makeMaxSanitizerUInt64(1001) };
|
2023-04-10 15:24:57 +00:00
|
|
|
SettingValue<int> mGcStepsPerFrame{ mIndex, "Lua", "gc steps per frame", makeMaxSanitizerInt(0) };
|
2022-09-30 20:36:51 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|