pw10n / Island

CSC 476 Final Project
4 stars 1 forks source link

Display list for unanimated models #80

Closed sblack closed 14 years ago

sblack commented 14 years ago

Game runs slowly on my computer when I'm in the middle of the huts and trees ( 10-15 fps vs 30-40 fps in the open). Supposedly, using a display list can improve this; minor testing with just rocks and trees gained a few fps.

All it would take is a function in main.cpp (or as part of init() in objloader.h) to generate the display lists, and replace the renderOBJModel() calls in gameobjects.cpp with glCallList(). Also objectstates would no longer need a _tid.

If there are no objections to this, I can do it tonight after I finish with AI.

pw10n commented 14 years ago

This sounds like a good improvement to have.

sblack commented 14 years ago

It works. Done.