diff options
author | 2022-10-05 16:07:43 -0700 | |
---|---|---|
committer | 2022-10-05 16:07:43 -0700 | |
commit | 1eb8d972ba60592da7bfc27fe7ec80138e64dd7b (patch) | |
tree | 1951255bcb8d2b87767da406eb87b80ab5a709cc /examples | |
parent | f7ce7244d017ec16545a3e52b6e7cf634bbffd4a (diff) | |
download | iced-1eb8d972ba60592da7bfc27fe7ec80138e64dd7b.tar.gz iced-1eb8d972ba60592da7bfc27fe7ec80138e64dd7b.tar.bz2 iced-1eb8d972ba60592da7bfc27fe7ec80138e64dd7b.zip |
Reduced memory transfer of OpenGL gradient uniform upload. Rearranged gradient uniforms on OpenGL side to be more performant.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/modern_art/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/modern_art/src/main.rs b/examples/modern_art/src/main.rs index 14e117b3..a7aa2d8a 100644 --- a/examples/modern_art/src/main.rs +++ b/examples/modern_art/src/main.rs @@ -91,7 +91,7 @@ fn generate_box(frame: &mut Frame, bounds: Size) -> bool { let gradient = |top_left: Point, bottom_right: Point| -> Gradient { let mut builder = Gradient::linear(top_left, bottom_right); - let stops = thread_rng().gen_range(1..10u32); + let stops = thread_rng().gen_range(1..15u32); let mut i = 0; while i <= stops { |