StateBlock
When a using StateBlock to save Device state, frame rate down too much when device is create using Software Vertex Processing (1200 frames/s to 250).
In DirectX SDK sample occurs the same problem (530 frames/s to 180).
To minimize this is necessary create a device with MixedVertexProcessing, if graphics card not able to use Pure Hardware Vertex Processing?
Try not to use StateBlocks to save & restore device state; you may be setting too much state that way. One way of getting around this problem is to use effects and create some known good states for your rendering techniques, and then switch between those.
hi, what about State block using inside CustionUI sample ( DirectSDK)? if I remove is it give some gain on perfomance, when I do it, can I be sure that will no apeear some issues, caused. thanks
ps. I have 100fps at my GeForce fx5600, 2800+athion 512 ddr, is it normal? how can get great gain there, I removed effects there, since I need only UI there + I'm playing video to texture (render to texture) and show as background, thi low fsp very much, any suggestions?