Author |
Found display bug... |
Faustus Marshal Palestar
Joined: May 29, 2001 Posts: 2748 From: Austin, Texas
| Posted: 2003-07-29 10:25  
While I was looking for the bug that causes the slowdown when you point the camera straight down, I was noticing ALOT of CPU time was going to locking a vertex buffer for rendering a sprite of a background nebula.
So after commenting out a lock of a vertex buffer, I noticed the CPU usage dropped off to nothing... so off I went into my DirectX documentation to find out what the problem was.
Long story short, instead of resetting all my dynamic vertex buffers, I only reset them once they are filled (which can be many frames of animation). The stall as it turns out was because I was trying to lock a vertex buffer before the hardware was done rendering with it, thus it was stalling the lock() until the buffer space was available.
Now the debug version of the game renders 70-90 Frames per second, before it was rendering 30 FPS. Keep in mind, the debug version is MUCH slower than the release version.
-Richard
_________________
|
|2eason Grand Admiral Agents
Joined: September 30, 2001 Posts: 1252 From: Wisconsin, US
| Posted: 2003-07-29 10:32  
Keep up the good work F!!! BTW: Love the New Interface!
- |2eason -
_________________
____________
[-[A]-]|2eason the retired
|
Demorian Fleet Admiral Galactic Navy
Joined: October 06, 2001 Posts: 3406 From: Charlotte, North Carolina
| Posted: 2003-07-29 10:33  
Woot! Good job, Faust. And I was about to recommend a "maximum rendering distance" client option, too Seems there isn't a need for one.
...or is there? hehe, good work bud.
-Dem
_________________
|
Sardaukar Admiral Raven Warriors
Joined: October 08, 2002 Posts: 1656
| Posted: 2003-07-29 12:28  
Faustus...you are now my hero. My 20fps has a chance at life! WHEE!@#
_________________
|
DOM700 [-IMO-] Fleet Admiral
Joined: July 26, 2001 Posts: 3175 From: Eckental, Germany, Sol-System
| Posted: 2003-07-29 14:19  
Maybe I will have more than 0.0x FPS during combats with the patch
_________________ If the buildings on your planets disappear, guess who was there....
Never forget what you fight for
I have earned my betatester badge for being part of the open beta
|
Pope Fleet Admiral
Joined: June 11, 2002 Posts: 2449 From: World of tomorrow
| Posted: 2003-07-29 14:37  
wow, very nice indeed!!
_________________
|
Demorian Fleet Admiral Galactic Navy
Joined: October 06, 2001 Posts: 3406 From: Charlotte, North Carolina
| Posted: 2003-07-29 16:35  
Faustie, whatever you fixed today and updated w/the beta code is causing graphics glitches galore. All of the sprites, interface, renderings, etc, fluctuate and tear.
It's really borkzored. I tried to restart the game to fix it, but the problem is persistant. I'm running an nViDIA GeForce4 Ti 4600 AGP (128 MB).
-Dem
_________________
|
Pope Fleet Admiral
Joined: June 11, 2002 Posts: 2449 From: World of tomorrow
| Posted: 2003-07-29 16:46  
aye, its really borken.
_________________
|
Thrie Fleet Admiral Raven Warriors
Joined: October 28, 2002 Posts: 760
| Posted: 2003-07-29 17:21  
whoa... this must be what they meant about model mess up, it does seem so that way heh.
Well look on the bright side, No more Camera lag! all those flashy things reminded me of Pokemon for some reason...
_________________ [Fleet Admiral] Thrie \"The Tiger\" Barton of [C.S.S. Armor Tiger]
|