Sign in to follow this  
  • entries
    570
  • comments
    2427
  • views
    216029

4E4RTS

Sign in to follow this  
Mushu

63 views

Refactored the cSDLMap code - now the map data is stored in a vector instead of a list, thus granting be both sequential and random-access powers.

Which is nice when it comes to culling, and fixes some fundamental flaws I would have encountered during gameplay programming (ie, whether or not a unit is standing in the water)

No noticable fps boost [headshake]
Sign in to follow this  


2 Comments


Recommended Comments

You wouldn't get an FPS boost; vector is slower and larger than list to the best of my memory. It is a good choice though.

Share this comment


Link to comment
I would be able to get an fps boost because the culling function just went from bounds-checking 80*60 tiles sequentially to just rendering the ones necessary via random access.

Apparently, bounding boxes are faster than shit. Holy shit.

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