Skip to content

Commit

Permalink
Sort+dedup drawcalls in the wasm code, too
Browse files Browse the repository at this point in the history
  • Loading branch information
tomassedovic committed Dec 20, 2017
1 parent f8acebc commit 4a1107c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ pub fn update(state_ptr: *mut State) {
&mut drawcalls,
);

engine::sort_drawcalls(&mut drawcalls, 0..);

// Each "drawcall" will be 6 u8 values: x, y, char, r, g, b
let mut js_drawcalls = Vec::with_capacity(drawcalls.len() * 6);
Expand Down

0 comments on commit 4a1107c

Please sign in to comment.