Skip to main content

All Questions

Filter by
Sorted by
Tagged with
3 votes
2 answers
174 views

In XNA 4, how can I access SpriteBatch's transformMatrix in my shader?

I would like to use a custom effect with a regular XNA SpriteBatch. I have a 2D camera which computes a transform matrix, so I need my shader to take this into ...
dfgdhdgh's user avatar
5 votes
1 answer
2k views

How to optimize SpriteBatch usage?

From what I understand, SpriteBatch's purpose is to batch as many draw operations to send to the GPU. Each batch can handle one texture at a time, and changing SpriteBatch context/texture is expensive,...
Yariv Livay's user avatar
2 votes
2 answers
2k views

Does my 2D OpenGL renderer need optimized?

I've started a game engine for learning purposes. I have successfully gotten an opengl renderer working and I can draw textures of varying sizes to the screen. The way I have done this is by creating ...
kfan's user avatar
  • 311