Sign in to follow this  
  • entries
    557
  • comments
    1237
  • views
    421525

Untitled

Sign in to follow this  
Evil Steve

48 views

Yes, well, clearing the Z-buffer properly would help. I found that I was clearing the Z-buffer when I begin the scene, then rendering my map. And the map was writing to the Z-buffer (Which it shouldn't). So, I just disable Z-writes when rendering the map. I'll change that in a bit when I get the sprite-based map working.

My sprite manager seems to be working perfectly now, the batching seems good, etc etc. As I said in my last entry, I still need to give it a real test though.
I'll hopefully get the sprite-based map working during my lunch break today, I just need create a bunch of SOSprite objects, then draw them all each frame. I'm not entirely sure what inserting 768 sprites to a std::multiset will do to my performance, but it hopefully won't be *that* bad. If it does become a problem, I can always fall back to my current map method. If the sprite version works, I'll be happy, since then I can have multi-layered (Paralax) maps without much of a performance hit, which will be nice.

This code has finally compiled. Back to work...
Sign in to follow this  


0 Comments


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