microborg/OpenGLMaze — Issue #1: Non-opengl objects take forever to render
Author: nickpascucci
Created: 2011-10-26 03:07:17+00:00
State: open

The zombies, doors, and chests take too long to render, they're slowing the framerate down. Can we cut the polygon count to make them go faster?

I timed the "makeobj" method, and got these results.
Timing data:

...
Need to draw 158 objects.
Done making zombie object at 0.602508068085 seconds.
Done making chest object at 0.170793056488 seconds.
Need to draw 158 objects.
Done making zombie object at 0.319694042206 seconds.
Done making chest object at 0.175888061523 seconds.
Need to draw 158 objects.
Done making zombie object at 0.455363988876 seconds.
Done making chest object at 0.343286037445 seconds.
Need to draw 159 objects.
Done making zombie object at 0.46088385582 seconds.
Done making chest object at 0.171663045883 seconds.
Need to draw 159 objects.
...

These are not atypical...

The zombie file alone has over 32,000 lines in it; I'm not sure how that relates to polygons, but it can't be good.