All pastes #675545 Raw Edit

Untitled

public text v1 · immutable
#675545 ·published 2007-08-30 07:46 UTC
rendered paste body
Serge' says:
setting blend modes?
Adam says:
spriteBatch.Begin(...)
Serge' says:
damn
Serge' says:
that means you'd have to write your own culling by blend mode
Adam says:
I wouldn't know.
Serge' says:
oh well, better than game maker not doing it AND not giving you an option do to it
Serge' says:
think of it this way
Serge' says:
every time you change states, you lose speed
Serge' says:
I could a)
draw 20 sprites in normal blending and another 20 in add blending 
or b)
draw 1 normal 1 add, reset, repeat 20 times
Serge' says:
the second is obviously considerably slower
Adam says:
Ahh.
Adam says:
Yeah.
Serge' says:
so in a serious game
Serge' says:
you'd have to write a script that would order things by the number of state changes they require and grouped them together
Adam says:
Wow, fun.
Serge' says:
=)
Serge' says:
awfuly low-level
Serge' says:
I was hoping it already did this
Serge' says:
ogre does