Skip to content

Commit

Permalink
examples: mention also the RAM usage increase in many_thousands_of_ci…
Browse files Browse the repository at this point in the history
…rcles_overriding_max_vertices.v
  • Loading branch information
spytheman committed Jan 6, 2025
1 parent 7aa2fcb commit f06ff69
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit f06ff69

Please sign in to comment.