1.6 Beta 5 is Now Available on SDC

Watch here for test builds

First of all, the change log:

+ FIX: Added code for the super hiver to adjust the costs of factories in the queue when they take over another colony to fix the bug where factories on worlds the hivers took over seemed to be stuck at zero turns.

+ FIX: Fixed a lockup on Trade screen when you have a huge amount of money in the treasury and you try to offer money.

+ FIX: Fixed lockup on Governor screen when you click on the Starship rallypoint governor

+ FIX:  Found a solution for the graphical glitches on AMD machines.  For those of you who are interested, it was a bug in a particular function in the version of the DirectX SDK that we're using.  So CodeCritter made his own version of the function.

+ FIX: Optimized new batch renderer so that ship instances of the same type will share the same vertex and index buffers.  This will save memory over the previous implementation where each instance had its own vert and index buffers. This should also fix the where ship parts sometimes would not show textures in the designer.

+ TWEAK: The display of stars on the minimaps should now be more visible on large and gigantic galaxies.

+ TWEAK: Made a slight change to the code that starts the AI threads which may help with the AI seeming to get a free turn at the start of a new game or when loading a save game but as I didn't have time to fully investigate the bug, this may only address part of the problem. 

People were still reporting out of memory errors with the test builds so we're still looking to see if we can figure out what might be sticking around in memory when it should be deleted.  In the meantime, here are some ways to save memory in DA:

1) Make sure that your virtual memory is set to at least 2 GB.  More than that probably won't help because Windows will cut GalCiv2 off after 2 GB if it's not 64 bit.

2) Turn off background stars and nebulas.

3) Change from scattered star density to tight clusters.

4) Reduce the number of stars, planets, and the availablility of habitable planets

5) Play on galaxies galaxies no bigger than large.

6) Turn off mods.

To increase the amount of Virtual Memory available to Windows:
 
1) Right click on the My Computer icon and chose properties
2) Click on the advanced tab
3) Under performance, click on the Settings button.
4) Click on the advanced tab
5) Click on the change button
6) Change the initial size to the recommended size and then increase the maximum size.

Update 5/29/07:

The following link is an update to 1.6 beta 5 which includes a fix for a crash following an Alt-Tab, a fix to remove AI ship designs from the graphics cache when they are no longer being used, and a fix that we hope will help the people getting the slowdown running in sw vp mode:

http://sd.stardock.com/carielf/da_1_6_b5d.zip

It appears that those of you with the slowdown when ships are on screen may be caused because your cards are running in what is called software vertex processing mode, which means that DirectX is having to emulate functionality that the driver should be handling, but is not. 

CodeCritter made some adjustments to the vertex buffers for if the game is running in sw vp mode that should help if you are stuck in software vp mode.  I am attempting to change the Direct3D initialization so that the game can start in mixed vp (where it uses hardware when it can, software where it can't) but it's not working for some older cards.

This link is the same as the above link except that it includes code to allow older cards to run in mixed vp mode, which may help with this error without needing to use the workaround below:

http://sd.stardock.com/carielf/da_1_6_b5e.zip

I was able to get it to work on a test box with an NVidia GeForce 5200 FX which is one of the problem cards, and I was getting 20 fps which isn't great, but a lot better than 2 fps.

If this build does not help, here is a workaround:

Try this to force it to use hw vp mode:

1) Create a shortcut that points directly to GC2DarkAvatar.exe. (Right click on the exe and choose send to desktop as shortcut)

2) Right click on the shortcut and choose properties.

3) Left click in the Target field and hit the END key on your keyboard so that the cursor is at the end of the field.  Hit space.  Type the word HARDWAREVP then hit OK.

Start the game and then see if it says something like this in your debug.err (with your own video card there):

Debug Message: HAL (hw vp): NVIDIA GeForce FX 5200

If Dark Avatar crashes when you try this, you could try the command line parameter MIXEDVP and see if that works for you.  If neither works, just delete the shortcut.

If you are forcing hardware vp, you should also disable the background stars and point sprites on the video tab so that it won't try to create graphics for the things that it can't draw in this mode.  You may notice other missing graphics.  This is really just a temporary workaround until we can figure out a better way to deal with it, and this won't work for everyone. 

And if anyone is wondering, yes, there is a SOFTWAREVP command line parameter too.    I created these three command line parameters when I was testing the Direct3D initialization code.

20,668 views 71 replies
Reply #1 Top
Great. I'll test it on Friday, it's my GC2 day
Reply #2 Top
The new beta seems to be working great. Graphical glitches are gone. Thumbs up to Mr. Brindle on the creative solution to the AMD problem.
Reply #3 Top
I am wondering is this Beta 5 different from the Beta 5 link you updated on 5/22 in your thread 1.6 Beta 4 thread here https://forums.galciv2.com/?forumid=421&aid=152947 ?

If it is, where is it available? I am not seeing on Stardock?

*** EDIT ****

I found it and got it from Stardock. Anyway, it doesn't improve the framerate problems that I was mentioning in my thread .
Reply #4 Top
I played last night with the beta 5 , for about half the night, 4 hours or so, and I never crashed out or had the out of memory error.
Reply #5 Top
Proud to announce the new Beta is working perfectly on my AMD system. Ship graphics looks stellar, mini-map cleaner, performance excellent. If it counts for anything I even loaded up an old saved game (gigantic map) with tons of ships, played it for like 10 turns and no out-of-memory messages, no decrease in frame rates, even loading up the saved game was quicker in my opinion....AWESOME and thanks Stardock crew for the quick resolution.
Reply #6 Top
Seems to have fixed my streaking issue. The game looks great now! Thanks!
Reply #7 Top
I just wanted to update in here that framerate problems I am having in this thread https://forums.galciv2.com/?forumid=421&aid=153449 go away if I go into the ship design screen. The frame rate problems only seem to be present on the main map screen when ships are shown on the screen.
Reply #8 Top

Thanks khold.  Your debug info from the other thread was very helpful since it tells us it's not a video memory issue (you have 64MB of ram).

If anyone else experiences low frame rate with this build, let us know. 

Reply #9 Top
Graphics fixed and still running at a good clip for me so far   .
Reply #10 Top
Thanks for the hard work, guys. It is appreciated!
Reply #11 Top
Looks great and runs great. Thanks guys.
Reply #12 Top
YAY, new beta!
Reply #13 Top
+ FIX: Found a solution for the graphical glitches on AMD machines.


Good, hopefully I don't need to start calling some of my ships whiskers, bushy stache, cactus, pin coushin, etc...

If anyone else experiences low frame rate with this build, let us know.


I haven't tried the latest beta yet, so I wouldn't know if I'm having any graphics problems with it. However, I have been focusing on the new "starbase hull repair kit" module. I've found a few minor bugs (minor GUI issues) with it, and thought of a recommendation for it. I'll write a report (aka new post) tomorrow after I do some testing, if I think there are still a few problems.
Reply #14 Top
All graphical glitches in DA have gone on my AMD system with this beta, great work guys and nice turnaround speed Played for a few hours last night - did get a crash once but that was because I had it minimised for about 5 minutes then tried to maximise it: it usually works but this time I just got an illegal operation crash. Tried to reproduce it and I couldnt, so its not an issue right now (my computer can give me some odd crashes when it wants to yet nothing can be wrong).

Nice work on beta 5 though, keep em coming!
Reply #15 Top
DivineWrath, can you please also send your report to [email protected]? We have a long weekend because of Memorial Day and I don't want it to get lost in the shuffle.
Reply #16 Top
Is there a technical problem right now? The whole 'Games' section in SDC is totally empty for me. I tried servers US-1 and US-2.
Reply #17 Top

e-stab, our people are working on it.

 

Reply #18 Top
Thanks, I just wondered if the problem was on my side.
Reply #19 Top
Hmmm, seems the game really doesnt like being minimized Maybe its just my system, anyone else have problems? It doesnt crash every time, but sometimes it does when I try to restore the game from being minimized. It does it when the game has gone back into fullscreen and is getting focus again.
Reply #20 Top
If you need to switch out often, you should really play in windowed mode (the switching goes much faster that way too).
Reply #22 Top
The only real problem with this, is if i accidentally hit the Windows key....then the game minimizes to bring up the start menu. This is a minor inconvienence unless it causes the game to crash
Reply #23 Top

Hmmm, seems the game really doesnt like being minimized Maybe its just my system, anyone else have problems? It doesnt crash every time, but sometimes it does when I try to restore the game from being minimized. It does it when the game has gone back into fullscreen and is getting focus again.



Yeah it hates me too when I minimize. If I minimize the game crashes usually.
Reply #24 Top
Yeah, the mini-map is fixed! The stars and planets are no longer dim!

Reply #25 Top
We fixed a bug with alt-tabbing/minimizing yesterday but it was too late to put it up on the server.  I'll put up a link at the top of this thread with the alt-tab fix.