Permalink
Browse files

Sort+dedup drawcalls in the wasm code, too

  • Loading branch information...
tomassedovic committed Dec 20, 2017
1 parent f8acebc commit 4a1107cbae50819c77739f106f0a64bbb269bbcd
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/main.rs
@@ -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);

0 comments on commit 4a1107c

Please sign in to comment.