Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comment
  • views

texture regions 2

Sign in to follow this  


I worked around an automation error I've had for a while when calling CreateVertexBuffer. When specifying the byte size, the general method is to use the size of your FVF (in this case I'm using the legacy 32 byte standard) multiplied by the vertex count. It turns out that 3145728 works but 24576 * 32 (same thing) does not. I've seen things like this in VB6 before when working with Long's. Furthermore I changed it to hardware vertex processing instead of software (software was faster when rendering face by face, but now with batches hardware is faster.)

My next test consisted of using a 64x64 quadpatch (single 32768 primitive batch), testing regions and native textures of 8x8, 512x512 and 2048x2048. A quad size of 8 and 16 were tested (doubling the amount of pixels to be drawn on screen.)

On System A: 174 FPS in all tests.
On System C: 127 FPS in all tests.
Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!