Author Topic: Lag for strange reasons  (Read 842 times)

Offline vonfrank

  • Posts: 447
  • Cookies: 182
Lag for strange reasons
« on: February 10, 2012, 03:29:37 PM »
I seem to get moments of incredible lag when certain ships are on screen at the same time.

For example, when I have the following ships visible on screen at once, the lag becomes ridiculous:
- JL Studio's Nova (http://bridgecommander.filefront.com/file/JL_Studios_Nova;96983)
- JL Studio's CGI voyager (http://bridgecommander.filefront.com/file/CGI_Voyager_Pack;85524)
and
- Wiley's Centaur (http://bridgecommander.filefront.com/file/WC_Excelsior_Centaur_Fleet_Pack;108323)

If any 2 of those are on screen and the other is off to the side, there is no lag, but the moment all 3 come into view my computer gets bogged down to about 1 or 2 FPS.

These 3 ships are not the only examples, sometimes its just between 2 different ships. Anyone know why this happens?

Offline Mario

  • Senior Software Developer
  • Administrator
  • Posts: 2186
  • Cookies: 1706
  • Life is life
Re: Lag for strange reasons
« Reply #1 on: February 10, 2012, 05:15:49 PM »
Polycount of those models and high res textures...

What are your computer specs?
Acta, non verba.
aka USS Sovereign

Offline vonfrank

  • Posts: 447
  • Cookies: 182
Re: Lag for strange reasons
« Reply #2 on: February 10, 2012, 07:05:28 PM »
It's not the poly count. I can have dozens of different ships on screen at once and there is no lag whatsoever. Its only with certain ships that there is this problem.

I think it has something to do with the textures. Perhaps when certain textures are on screen together at the same time my graphics card has trouble....... but I'm not really sure.

My comp specs:

Windows XP SP2

AMD Athalon 64 X2 Dual Core Processor 5000+
2.61 GHz processor
3.50 GB RAM

ATI Radeon X1600/X1650 Series
512 MB DDR2

Offline moed

  • Posts: 1472
  • Cookies: 57
  • Star Trekus Fanaticus
Re: Lag for strange reasons
« Reply #3 on: February 10, 2012, 08:38:28 PM »
It is definitely the textures... trust me on this one.

Your machine is not too bad at all to have good resolutions with BC, it's just those massive textures on those certain ships.

If you have Photoshop (or download a good free imaging program) you can reduce the texture sizes with balance in mind: not so low a res that the textures look bad, but not so high as to really slow your gameplay down.


Offline eclipse74569

  • Roger Smith of the U.S.S. Lollypop, a good ship
  • Webmaster
  • Posts: 2240
  • Cookies: 65535
Re: Lag for strange reasons
« Reply #4 on: February 10, 2012, 10:09:22 PM »
It is definitely the textures... trust me on this one.

Your machine is not too bad at all to have good resolutions with BC, it's just those massive textures on those certain ships.

If you have Photoshop (or download a good free imaging program) you can reduce the texture sizes with balance in mind: not so low a res that the textures look bad, but not so high as to really slow your gameplay down.



To add onto this, if the textures are 2048x2048 try reducing them to half (1024) and see if that helps.
Humankind cannot gain anything without first giving something in return, to obtain, something of equal value must be lost.  That is alchemy's first law of equivalent exchange.  In those days we really believed that to be the world's one and only truth~Alphonse Elric

Offline vonfrank

  • Posts: 447
  • Cookies: 182
Re: Lag for strange reasons
« Reply #5 on: February 10, 2012, 10:35:26 PM »
If i just reduce the texture resolution to 1024 instead of 2048, wont i have to modify the mesh in some way so that the model will recognize the new resolution?

I don't do any modeling work, (I'm a scripting person) so I'm not really sure what else would be required it i did that.

I was thinking that another alternative would be to download a lower resolution version of each high res ship model and have the model switch out to the low quality version when the ship is at a far distance.

Offline Nebula

  • BC elder / BCC Vice Admin
  • Administrator
  • Posts: 5499
  • Cookies: 1129
  • KM - Mod Team Member & BC - Elder (2002)
    • 9th fleet HQ
Re: Lag for strange reasons
« Reply #6 on: February 10, 2012, 10:56:56 PM »
no changes to the model are needed...
Canon is what people argue exists on ships that don't exist.

Offline moed

  • Posts: 1472
  • Cookies: 57
  • Star Trekus Fanaticus
Re: Lag for strange reasons
« Reply #7 on: February 10, 2012, 11:24:24 PM »
If i just reduce the texture resolution to 1024 instead of 2048, wont i have to modify the mesh in some way so that the model will recognize the new resolution?

I don't do any modeling work, (I'm a scripting person) so I'm not really sure what else would be required it i did that.

I was thinking that another alternative would be to download a lower resolution version of each high res ship model and have the model switch out to the low quality version when the ship is at a far distance.

As Neb said, no changes to the model are needed. The textures automatically re-size when you change the texture resolution to as an example 2048 to 1024. The ship on screen won't look quite as sharp during a close up but 1024 is still a very good res.

Also, make sure the mip map option is turned on in your configuration. This feature switches out the textures to lower res when the ship is far away during game play.

Hope this helps 

Offline King Class Scout

  • Posts: 1775
  • Cookies: 893
  • the other half of SFRD
Re: Lag for strange reasons
« Reply #8 on: February 11, 2012, 07:47:01 AM »
from someone who has this problem ALL the time (and with a LESSER quality graphics card).  what they're saying is right. anything over 1024 causes me lag...as did some peoples models (looks at baz).  heck i had to upgrade the drivers for the STOCK graphics card that's in my machine...to the tune of a 17 MEG download.  and that was just to run 1024's
OS novel fan

Coming Soon: King's Mod Tuning Shop

best line I've ever read
Me: mine [my bridges] would probably be simple to get the characters to use.  the only person that sits is the captian.
Baz: space is vast there[sic] legs will be tired by the time they get to the next planet

Offline vonfrank

  • Posts: 447
  • Cookies: 182
Re: Lag for strange reasons
« Reply #9 on: February 12, 2012, 09:36:29 PM »
Ok, so I lowered the resolution of the textures for the Nova class using GIMP, but now the textures are all black with only some details at certain light angles.

Do I need to use photoshop?

Offline moed

  • Posts: 1472
  • Cookies: 57
  • Star Trekus Fanaticus
Re: Lag for strange reasons
« Reply #10 on: February 12, 2012, 10:34:21 PM »
I am not familiar on using GIMP. I have Photoshop and there's an easy way to reduce the texture size with that.

The thing to remember is that whatever program you use, if you have a .tga that is 2048x2048 make sure you reduce exactly by 2 or 4. Example: 2048x2048 to 1024x1024.

Also, the image should be 24bits per pixel. You can also do it at 32bits per pixel but that doesn't add any "extra" color information but does take up more space. 

Offline Maxloef

  • STBC Aftermath Co Founder
  • Posts: 493
  • Cookies: 61
Re: Lag for strange reasons
« Reply #11 on: February 13, 2012, 07:24:44 AM »
I am not familiar on using GIMP. I have Photoshop and there's an easy way to reduce the texture size with that.

The thing to remember is that whatever program you use, if you have a .tga that is 2048x2048 make sure you reduce exactly by 2 or 4. Example: 2048x2048 to 1024x1024.

Also, the image should be 24bits per pixel. You can also do it at 32bits per pixel but that doesn't add any "extra" color information but does take up more space. 

actualy 24 bit deletes the alpha channel which you NEED....

Offline moed

  • Posts: 1472
  • Cookies: 57
  • Star Trekus Fanaticus
Re: Lag for strange reasons
« Reply #12 on: February 13, 2012, 12:57:10 PM »
actualy 24 bit deletes the alpha channel which you NEED....

Oops! Forgot about that.

Thanks for the catch!

Offline vonfrank

  • Posts: 447
  • Cookies: 182
Re: Lag for strange reasons
« Reply #13 on: February 13, 2012, 06:04:13 PM »
No matter what i do with GIMP, the textures always come out black at certain angles in game.

I guess I'll have to get photoshop.

Offline Nebula

  • BC elder / BCC Vice Admin
  • Administrator
  • Posts: 5499
  • Cookies: 1129
  • KM - Mod Team Member & BC - Elder (2002)
    • 9th fleet HQ
Re: Lag for strange reasons
« Reply #14 on: February 13, 2012, 06:22:22 PM »
try paint.net
Canon is what people argue exists on ships that don't exist.