The_Fog
Dec 18th, 2001, 02:04 AM
I'm using vb and directx8 to create a small surface. It consists of aprox. 2400 squares (4800 triangles) in the 800x600 resolution. I'm using the normal transformed and lit flexible vertex format.
I'm using createTextureFromFile do load the textures.
The squares are overlapping each other in the following way.
1. Every square is 30x60 px.
2. Each squares x increase with +10 px compared to the square before it.
3. When one row has been completed, y is incresed by 20, and another row is drawn.
This results in small 10x20 squares that are overlapping eachother. This will result in as much as 9 squares overlapping eachother at some places. I'm using D3DBLEND_SRCCOLOR and D3DBLEND_DESTCOLOR to get some very cool effects on this.
The only problem now is the speed.. I'm running this on a celeron 667 mhz with an ATI rage fury pro card. And I'm only achieving about 8 fps. I need at least 25 to make it look good.
Are there any faster vertex format I can use? Any other way of loading the textures?
I'm using the "DrawPrimitiveUP" method to do the drawing. I'm using the "TriangleStrip" to create to solid squares which I then places my textures on. Are there any faster way to do this?
I know that this could be done faster since I've seen games in vb rendering like 10 000 vertexes and still getting about 25-30 fps. (on this computer)
As of now, I can only run this in 32bit color depth. If I try another format, then I just get an "automation error".
I'm thankful for every answer and tip that I get!
Sincerely
Benny Olsson
I'm using createTextureFromFile do load the textures.
The squares are overlapping each other in the following way.
1. Every square is 30x60 px.
2. Each squares x increase with +10 px compared to the square before it.
3. When one row has been completed, y is incresed by 20, and another row is drawn.
This results in small 10x20 squares that are overlapping eachother. This will result in as much as 9 squares overlapping eachother at some places. I'm using D3DBLEND_SRCCOLOR and D3DBLEND_DESTCOLOR to get some very cool effects on this.
The only problem now is the speed.. I'm running this on a celeron 667 mhz with an ATI rage fury pro card. And I'm only achieving about 8 fps. I need at least 25 to make it look good.
Are there any faster vertex format I can use? Any other way of loading the textures?
I'm using the "DrawPrimitiveUP" method to do the drawing. I'm using the "TriangleStrip" to create to solid squares which I then places my textures on. Are there any faster way to do this?
I know that this could be done faster since I've seen games in vb rendering like 10 000 vertexes and still getting about 25-30 fps. (on this computer)
As of now, I can only run this in 32bit color depth. If I try another format, then I just get an "automation error".
I'm thankful for every answer and tip that I get!
Sincerely
Benny Olsson