fn no_cache_render_100_small_sections_fully(b: &mut ::test::Bencher) {
    use std::f32;
    use gfx_glyph::*;

    let brush = GlyphBrushBuilder::using_font_bytes(TEST_FONT)
        .cache_glyph_positioning(false)
        .cache_glyph_drawing(false);
    let text = include_str!("small_lipsum.txt");

    let mut section_layouts = vec![];
    for i in 0..100 {
        section_layouts.push(Section {
            text,
            screen_position: (i as f32, 0.0),
            bounds: (100.0, f32::INFINITY),
            ..Section::default()
        });
    }

    bench(b, &section_layouts, brush);
}
// Note: 'no_cache' here refers to the glyph positioning/drawing caches (not the gpu cache)
'no_cache' here refers to the glyph positioning/drawing caches (not the gpu cache)
' no_cache ' here refers to the glyph positioning / drawing caches ( not the gpu cache )
fn no_cache_render_100_small_sections_fully(b: &mut ::test::Bencher) {
    use std::f32;
    use gfx_glyph::*;
    let brush = GlyphBrushBuilder::using_font_bytes(TEST_FONT)
        .cache_glyph_positioning(false)
        .cache_glyph_drawing(false);
    let text = include_str!("small_lipsum.txt");
    let mut section_layouts = vec![];
    for i in 0..100 {
        section_layouts.push(Section {
            text,
            screen_position: (i as f32, 0.0),
            bounds: (100.0, f32::INFINITY),
            ..Section::default()
        });
    }
    bench(b, &section_layouts, brush);
}
fn no_cache_render_100_small_sections_fully ( b : & mut :: test :: Bencher ) { use std :: f32 ; use gfx_glyph :: * ; let brush = GlyphBrushBuilder :: using_font_bytes ( TEST_FONT ) . cache_glyph_positioning ( false ) . cache_glyph_drawing ( false ) ; let text = include_str ! ( " " ) ; let mut section_layouts = vec ! [ ] ; for i in 0 .. 100 { section_layouts . push ( Section { text , screen_position : ( i as f32 , 0.0 ) , bounds : ( 100.0 , f32 :: INFINITY ) , .. Section :: default ( ) } ) ; } bench ( b , & section_layouts , brush ) ; }
Note: 'no_cache' here refers to the glyph positioning/drawing caches (not the gpu cache)
Note : ' no_cache ' here refers to the glyph positioning / drawing caches ( not the gpu cache )
b
&mut ::test::Bencher
b
&mut ::test::Bencher