Skip to content

Commit f06ff69

Browse files
committed
examples: mention also the RAM usage increase in many_thousands_of_circles_overriding_max_vertices.v
1 parent 7aa2fcb commit f06ff69

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

examples/gg/many_thousands_of_circles_overriding_max_vertices.v

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ import rand
55
#flag -D_SGL_DEFAULT_MAX_VERTICES=4194304
66
#flag -D_SGL_DEFAULT_MAX_COMMANDS=65536
77

8-
// Without the flags, `max_circles` > 5040, will just show
9-
// a blue screen without *any circles* drawn.
8+
// Without the flags, `max_circles` > 5040, will just show a blue screen without
9+
// *any circles* drawn.
10+
// **Note** however, that increasing `_SGL_DEFAULT_MAX_VERTICES`, also increases
11+
// the default RAM usage of your app. In this case, instead of using ~40MB on
12+
// Ubuntu 20.04, the app instead uses ~140MB.
1013
const max_circles = 10_000
1114

1215
fn main() {

0 commit comments

Comments
 (0)