From: Steinar H. Gunderson Date: Thu, 21 Jul 2022 23:02:12 +0000 (+0200) Subject: Make the theme cardinality warnings more lenient. X-Git-Tag: 2.2.0~5 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=b82d39cbf43527a38964d7868b31eaf1dc26870d Make the theme cardinality warnings more lenient. The default theme hits the 200 limit, so it felt a bit weird to warn on that. --- 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); }