   [DrectX10] instancing : ordering intances
  HelloIs it possible to order instances ?I would like to sort world matrices according to their  view space depth before send them to the GPU, but I'm afraid it's not possible to control draw order due to GPU parallel processing ....If it's not possible, maybe is there a common way to optimize instancing  draws?   
  You can create a dynamic  buffer that you write to in the CPU using Map() method.Each frame sort the world matrices, call ID3D10Buffer::Map(), store the sorted matrices in this buffer and then use it as the instances buffer. I dont know if this costs too much in terms of CPU time, but try it because its easy to implement and might worth the effort.   ;  Thank you for your replyIndeed my idea is to sort matrices and then send them to the GPU (as a single buffer).More precisely, my problem is that I'm not sure that this order will be kept, due to GPU parallel processingSo if it's not possible, I wonder if there's another way to optimize the draw   