From f06ff69bb900b5339c827708d1372938b783dd26 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 6 Jan 2025 15:01:22 +0200 Subject: [PATCH] examples: mention also the RAM usage increase in many_thousands_of_circles_overriding_max_vertices.v --- .../gg/many_thousands_of_circles_overriding_max_vertices.v | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/gg/many_thousands_of_circles_overriding_max_vertices.v b/examples/gg/many_thousands_of_circles_overriding_max_vertices.v index 0a0185f6c1..6e0ba9a6b3 100644 --- a/examples/gg/many_thousands_of_circles_overriding_max_vertices.v +++ b/examples/gg/many_thousands_of_circles_overriding_max_vertices.v @@ -5,8 +5,11 @@ import rand #flag -D_SGL_DEFAULT_MAX_VERTICES=4194304 #flag -D_SGL_DEFAULT_MAX_COMMANDS=65536 -// Without the flags, `max_circles` > 5040, will just show -// a blue screen without *any circles* drawn. +// Without the flags, `max_circles` > 5040, will just show a blue screen without +// *any circles* drawn. +// **Note** however, that increasing `_SGL_DEFAULT_MAX_VERTICES`, also increases +// the default RAM usage of your app. In this case, instead of using ~40MB on +// Ubuntu 20.04, the app instead uses ~140MB. const max_circles = 10_000 fn main() {