examples: mention also the RAM usage increase in many_thousands_of_circles_overriding_max_vertices.v

This commit is contained in:
Delyan Angelov 2025-01-06 15:01:22 +02:00
parent 7aa2fcb55e
commit f06ff69bb9
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -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() {