Division is more expensive than multiplication, and this doesn't seem to be optimize away, so iterating over `(0..height)` and `(0..width)` provides better performance. It's good to have the example show the best way to write code using softbuffer, and this helps when using examples as a benchmark. This will also be needed if Softbuffer supports formats where `stride` isn't just `width * pixel_size`, and needs alignment. |
||
|---|---|---|
| .. | ||
| animation.rs | ||
| fruit.jpg | ||
| fruit.jpg.license | ||
| fruit.rs | ||
| libxcb.rs | ||
| rectangle.rs | ||
| winit.rs | ||
| winit_wrong_sized_buffer.rs | ||