#ifndef OPENMW_COMPONENTS_SETTINGS_CATEGORIES_CELLS_H #define OPENMW_COMPONENTS_SETTINGS_CATEGORIES_CELLS_H #include "components/settings/sanitizerimpl.hpp" #include "components/settings/settingvalue.hpp" #include #include #include #include #include #include namespace Settings { struct CellsCategory { SettingValue mPreloadEnabled{ "Cells", "preload enabled" }; SettingValue mPreloadNumThreads{ "Cells", "preload num threads", makeMaxSanitizerInt(1) }; SettingValue mPreloadExteriorGrid{ "Cells", "preload exterior grid" }; SettingValue mPreloadFastTravel{ "Cells", "preload fast travel" }; SettingValue mPreloadDoors{ "Cells", "preload doors" }; SettingValue mPreloadDistance{ "Cells", "preload distance", makeMaxStrictSanitizerFloat(0) }; SettingValue mPreloadInstances{ "Cells", "preload instances" }; SettingValue mPreloadCellCacheMin{ "Cells", "preload cell cache min", makeMaxSanitizerInt(1) }; SettingValue mPreloadCellCacheMax{ "Cells", "preload cell cache max", makeMaxSanitizerInt(1) }; SettingValue mPreloadCellExpiryDelay{ "Cells", "preload cell expiry delay", makeMaxSanitizerFloat(0) }; SettingValue mPredictionTime{ "Cells", "prediction time", makeMaxSanitizerFloat(0) }; SettingValue mCacheExpiryDelay{ "Cells", "cache expiry delay", makeMaxSanitizerFloat(0) }; SettingValue mTargetFramerate{ "Cells", "target framerate", makeMaxStrictSanitizerFloat(0) }; SettingValue mPointersCacheSize{ "Cells", "pointers cache size", makeClampSanitizerInt(40, 1000) }; }; } #endif