Friday, August 24, 2012

Efficiency

I have added in more objects and NPCs.  Now, I need to improve DM interaction with some of the objects and improve the way that NPCs are controlled.  Ideally, they will be controlled exactly as a hero is controlled.
Besides this, I realized that my FPS is extremely low (~10 fps for a 2D game in OpenGL.)  I have mapped all of the terrain textures on a single sheet, and now it runs at about 25 fps.  While this is a solid improvement, it really should be 60.  I have noticed that removing the code for drawing the other objects barely increases framerate, and it is the menu/GUI code that is causing the huge fps hit.  This is especially strange because most of the code is not being drawn at all... What in the world is going on?

No comments:

Post a Comment