From b82d39cbf43527a38964d7868b31eaf1dc26870d Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 22 Jul 2022 01:02:12 +0200 Subject: [PATCH] Make the theme cardinality warnings more lenient. The default theme hits the 200 limit, so it felt a bit weird to warn on that. --- nageru/scene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nageru/scene.cpp b/nageru/scene.cpp index 11a3d21..8e3dfd2 100644 --- a/nageru/scene.cpp +++ b/nageru/scene.cpp @@ -475,7 +475,7 @@ int Scene::finalize(lua_State* L) } } const size_t total_cardinality = real_cardinality * (only_one_mode ? 1 : 2); - if (total_cardinality > 200) { + if (total_cardinality > 400) { print_warning(L, "The given Scene will instantiate %zu different versions. This will take a lot of time and RAM to compile; see if you could limit some options by e.g. locking the input type in some cases (by giving a fixed input to add_input()).\n", total_cardinality); } -- 2.39.2