[project1dev] Project1 - SVN Update 19

  • From: dhapache@xxxxxxxxxxxxxxxxxxx (Apache User)
  • To: project1dev@xxxxxxxxxxxxx
  • Date: Sun, 5 Apr 2009 21:21:51 -0700 (PDT)


Message: Frustum culling added to make the game run faster! Basically this just 
means that whatever is on screen isn't drawn or animated any longer.

In cavemap.lua it was tanking a little in the FPS with all the new models added 
for walls and rails for the mine carts.

Here's the numbers on cavemap.lua from my machine:
Without frustum culling - 99fps without vsync, 56-60fps with vsync.
With frustum culling - 380-440fps without vsync, solid 60fps with vsync.

As we move further, optimizations will be harder and harder to do, but this was 
a really low hanging fruit, and there are a few more left before it'll get 
difficult (:

<Files Changed>
U   ARDebug.exe
U   ARRelease.exe
U   AR_AnimModels.cpp
U   AR_AnimModels.h
U   Camera.cpp
U   Scripts/alanmap.lua
U   UI_Game.cpp
U   camera.h

Other related posts: