Jump to content
Sign in to follow this  
  • entries
    63
  • comments
    56
  • views
    44311

Doh, and small improvements

Sign in to follow this  
rick_appleton

204 views

Doh: the 1/2 pixel differences was due to me using a rotate for my own renderer, but not on the OpenGL version. So that's fixed :D

A few small improvements have been made: a TnL cache that can cache the last few vertices. This seemed to have a small improvement in my test cases, but nothing really big. This is more or less what I expected, since I'm using flatshaded models, which obviously don't repeat stuff. It did increase the speed a bit if I used models with non-flatshaded normals (but these looked like shit).

I'll be adding code to calculate normals on the fly, and see if that gains me anything with respect to the original version.

Still need to look at the matrix stuff, so I'm slowly learning some ASM.

During that I did a quick test to see if there was any difference in ASM between functions written my fixed point class (with operator overloads and whatnot) and my fixed point typedef + helper functions. None!, so I'll now happily convert everything to use the class, since it obviously makes the code much clearer.

I'm starting to switch to a new testcase which draws 4 cubes instead of one. The FPS dropped to 1/4 of what it was, which is mostly to be expected, but was still a little bit disappointing, as I had hoped it would drop slightly less.
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
  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!