From a178ed8bccbc5bc9344f0a5d7b56e5ed0c8a4c62 Mon Sep 17 00:00:00 2001 From: kearwood Date: Sat, 15 Jan 2022 02:24:08 -0800 Subject: [PATCH] Hard-coded dummy values for streamer thread configuration. (To be replaced after Vulkan conversion) Eliminated KRContext::KRENGINE_MAX_SHADER_HANDLES --- kraken/KRContext.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/kraken/KRContext.cpp b/kraken/KRContext.cpp index f75d208..a1f9d9a 100755 --- a/kraken/KRContext.cpp +++ b/kraken/KRContext.cpp @@ -48,12 +48,16 @@ #include #endif -int KRContext::KRENGINE_MAX_PIPELINE_HANDLES; -int KRContext::KRENGINE_GPU_MEM_MAX; -int KRContext::KRENGINE_GPU_MEM_TARGET; -int KRContext::KRENGINE_MAX_TEXTURE_DIM; -int KRContext::KRENGINE_MIN_TEXTURE_DIM; -int KRContext::KRENGINE_PRESTREAM_DISTANCE; + // TODO - Make values dynamic after Vulkan conversion: +int KRContext::KRENGINE_MAX_PIPELINE_HANDLES = 4000; +int KRContext::KRENGINE_GPU_MEM_MAX = 256000000; +int KRContext::KRENGINE_GPU_MEM_TARGET = 192000000; +int KRContext::KRENGINE_MAX_TEXTURE_DIM = 8192; +int KRContext::KRENGINE_MIN_TEXTURE_DIM = 64; + +// TODO - This should be configured per-scene? Or auto/dynamic? +int KRContext::KRENGINE_PRESTREAM_DISTANCE = 1000.0f; + int KRContext::KRENGINE_SYS_ALLOCATION_GRANULARITY; int KRContext::KRENGINE_SYS_PAGE_SIZE;