ConfigVars.defs.h 1.4 KB

12345678910111213141516171819202122232425
  1. // Copyright (C) 2009-2023, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. ANKI_CONFIG_VAR_GROUP(CORE)
  6. ANKI_CONFIG_VAR_PTR_SIZE(CoreRebarGpuMemorySize, 24_MB, 1_MB, 1_GB, "ReBAR: always mapped GPU memory")
  7. ANKI_CONFIG_VAR_PTR_SIZE(CoreGlobalVertexMemorySize, 128_MB, 16_MB, 2_GB, "Global index and vertex buffer size")
  8. ANKI_CONFIG_VAR_PTR_SIZE(CoreGpuSceneInitialSize, 128_MB, 16_MB, 2_GB, "Global memory for the GPU scene")
  9. ANKI_CONFIG_VAR_BOOL(CoreMaliHwCounters, false, "Enable Mali counters")
  10. ANKI_CONFIG_VAR_U32(Width, 1920, 16, 16 * 1024, "Width")
  11. ANKI_CONFIG_VAR_U32(Height, 1080, 16, 16 * 1024, "Height")
  12. ANKI_CONFIG_VAR_U32(WindowFullscreen, 1, 0, 2, "0: windowed, 1: borderless fullscreen, 2: exclusive fullscreen")
  13. ANKI_CONFIG_VAR_U32(CoreTargetFps, 60u, 1u, kMaxU32, "Target FPS")
  14. ANKI_CONFIG_VAR_U32(CoreJobThreadCount, max(2u, getCpuCoresCount() / 2u), 2u, 1024u, "Number of job thread")
  15. ANKI_CONFIG_VAR_U32(CoreDisplayStats, 0, 0, 2, "Display stats, 0: None, 1: Simple, 2: Detailed")
  16. ANKI_CONFIG_VAR_BOOL(CoreClearCaches, false, "Clear all caches")
  17. ANKI_CONFIG_VAR_BOOL(CoreVerboseLog, false, "Verbose logging")
  18. ANKI_CONFIG_VAR_BOOL(CoreBenchmarkMode, false, "Run in a benchmark mode. Fixed timestep, unlimited target FPS")
  19. ANKI_CONFIG_VAR_U32(CoreBenchmarkModeFrameCount, 60 * 60 * 2, 1, kMaxU32,
  20. "How many frames the benchmark will run before it quits")