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


Sign in to follow this  
Evil Steve


My forum has been getting more and more spammers recently, so I'm going to do something to the phpbb code this weekend (Well, in theory). I'll put one of those "Please type the letters you see above" validation things on the posting page for guests, and on the register page. I've never written one before, but I doubt it'll be too hard. And there's probably free ones out there I can use or base the code on.

Dev stuff: I discovered that my textures weren't being reused. My resource manager won't load the same texture twice, it'll just return the same one (Unless you explicitly tell it not to). That makes sharing resources transparant. However, the texture manager doesn't. So you load texture A from the resource manager and add it to the texture manager. It adds it to the texture sheet and returns. You then load texture A again and add it to the texture manager. The resource manager returns the stored texture, but the texture manager inserts another copy into the texture sheet.
Anyway, that's fixed now.

Also, ID3DXFont stuff - I'm in the process of writing my own derived ID3DXSprite to do the font rendering. I'll wrap that up into a sprite object in my scene, which should help with batching even more. I don't know if it'll work, it'll be easy enough to test. The main reason is that I can't get ID3DXFont to use the Z buffer. I guess there's a way, but I don't know. Implementing a wrapper around ID3DXSprite would do it (I can manually changethe Z coords), but then so would going the whole hog.

Sprite animation is done too, you can specify several frames for a sprite and change between them. It's all optimized so it won't touch the scene graph unless it really needs to (If the actual texture pointer changes). I could perhaps do with trying to force a sprite to keep all of it's animations on one sheet, but I don't think that's at all important. It's up the game code to actually animate the sprite, which makes sense.

Anyway. Work time...
Sign in to follow this  


Recommended Comments

LOLOLOLOLOL Hacking about, watching what ID3DXFont does is sexual. I'll submit a journal entry when I get home. I just jumped up from 70FPS to 82FPS by doing my own text rendering through intercepting ID3DXFont draw calls [grin]

Share this comment

Link to comment

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!