Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 11 Apr 2012
Online Last Active Today, 01:23 AM

#5014890 Which situation is more optimal for sprite batching?

Posted by Maus on 27 December 2012 - 05:17 PM

Usually the transformation is calculated outside of the shader, because the shader has to do it repeatedly for each vertex and you have a much better control of the calculations this way. You can also optimize it (e.g. with SSE) for max performance and so the CPU and GPU work perfectly side by side.

There is a nice article from Jari Komppa about this topic: http://sol.gfxile.net/instancing.html

Best regards
- Martin