I have a couple of questions :
1. I'm creating my shadows using copyrect from the backbuffer (ortho cam) to the texturebuffer which works fine. I read once that there was another flag you can use when creating the texture (256 I think) which holds the texture in vmem so should make the process faster - can anyone give me more detail? The 256 flag doesn't seem to do much for me - is it possible that my computer doesn't support this or is it GFX card related - I only have a naff GF2? Is this a v1.85 feature or was it already in v1.83?
2. I also have a texture which I update various pixels each frame. The original colors of the texture are held in an array. I hold all the pixels I want to change and their new r,g,b values in a list and only update these pixels each frame. I know I can speed this up using lockbuffer and then writepixel fast but what is the quickest way of doing this? The r,g,b values in the list are derived from the original r,g,b values - e.g. new r = old r *.75
I hope this makes sense to someone - if you can help I'd appreciate it!
Stevie
1. I'm creating my shadows using copyrect from the backbuffer (ortho cam) to the texturebuffer which works fine. I read once that there was another flag you can use when creating the texture (256 I think) which holds the texture in vmem so should make the process faster - can anyone give me more detail? The 256 flag doesn't seem to do much for me - is it possible that my computer doesn't support this or is it GFX card related - I only have a naff GF2? Is this a v1.85 feature or was it already in v1.83?
2. I also have a texture which I update various pixels each frame. The original colors of the texture are held in an array. I hold all the pixels I want to change and their new r,g,b values in a list and only update these pixels each frame. I know I can speed this up using lockbuffer and then writepixel fast but what is the quickest way of doing this? The r,g,b values in the list are derived from the original r,g,b values - e.g. new r = old r *.75
I hope this makes sense to someone - if you can help I'd appreciate it!
Stevie