UFO:Alien Invasion

Technical support => Feature Requests => Topic started by: Malick on April 05, 2007, 03:48:12 pm

Title: Sluggish FPS on WinXP
Post by: Malick on April 05, 2007, 03:48:12 pm
Hi all !

First of all I am very nicely surprised to see UFO AI reach such a level of development. I want to thank the dev and all the people that helped them working on this.

The game installs and runs nicely. Except one thing : once I get in 3D maps (or affecting soldiers to a craft, where the soldiers and weapons model appear on screen), the game gets so laggy that it's unplayable. Usually, I have a steady 50 frames/sec but as soon a 3D model appears, that gets down to 4-6 frames...

I have an AMD4600 X2 with WinXP SP2, 2Go DDRam and nVidia GF7900GT. What do you think could be the problem ?

Otherwise, I love all the new (and old) features. Very very good job !

Malick
Title: Sluggish FPS on WinXP
Post by: Kaerius on April 05, 2007, 04:34:23 pm
Same here, it chugs in tactical missions, not unplayable, but it's barely.

My specs:
Core 2 Duo E6600 2.4Ghz
2 gig DDR2-PC6400
Geforce 8800GTS
Win XP pro, SP2

I mean, come on, I can run Gothic 3 on high(and that's an extremely badly optimized game.) Something on the quake 2 engine shouldn't be this laggy.
Title: Sluggish FPS on WinXP
Post by: Kaerius on April 06, 2007, 12:33:31 am
Update: On some maps, it doesn't chug at all, on some it chugs something fierce(the disco map for one.) Thought it was the fires at first, but another map with a huge burning ufo wreck didn't chug at all, and that map was maybe 4x as large as the disco map.

Also might be related to sound? I know decreasing the sound quality to 11khz increased my performance.
Title: Sluggish FPS on WinXP
Post by: Zenerka on April 06, 2007, 08:23:42 am
Maybe related to breakable addons. Mattn? (Somehow I doubt it).
Title: Sluggish FPS on WinXP
Post by: Mattn on April 06, 2007, 08:57:54 am
can you give us more examples of maps that don't work - that would help us to nail the problem down.

thankyou
Title: Sluggish FPS on WinXP
Post by: Malick on April 06, 2007, 12:00:04 pm
Well, after some testing this night, it appears that after a while (30 minutes) everything gets back to normal.

What happens : the game works fine, except when 3D objects are on screen (soldiers model in personel screen or battle map) and the GPU fan turns berserk (GF7900GT 256Mo, it heats even more than for Oblivion). The first two maps were sluggish, as well as all screens involving soldiers model, and then everything went fine after maybe 30-40 minutes of play. No explanation about this, I didn't change anything.

NB:The black texture map bug has been solved by removing the UFO directory in Application Data.

I'll try tonight to see if this bug repeats itself and I'll tell you more about it.

Malick
Title: Sluggish FPS on WinXP
Post by: Dim on April 06, 2007, 12:01:03 pm
I don't know if it will be of any help.

I sometimes encounter the same issue. I go to the video options, switch the screen definition to a lower and back to my screen optimal definition (clicking on the little magnifying glass after each change) and everything works fine after that.
Title: Sluggish FPS on WinXP
Post by: Kaerius on April 06, 2007, 12:12:07 pm
Also, and this is the weirdest one, it chugs during team creation in multiplayer. But only on the primary weapon tab(it lags much less on secondary weapons, and not at all on misc or armor.)
Title: Sluggish FPS on WinXP
Post by: Zenerka on April 06, 2007, 12:38:13 pm
I would like to ask you to perform additional testing:
1) Deinstall the game.
2) Install it again.
3) Before you run, go to base/ directory
4) Unpack every pk3 file you find there (basicaly it is renamed zip)
5) remove pk3 files after unpacking
6) run the game.

Does that help? If yes - we would know what causes this.
Title: Sluggish FPS on WinXP
Post by: Cougar_DK on April 06, 2007, 01:02:28 pm
Hi, I've just tried what you suggested and its still VERY slow. I'm on the farm08d map.

My pc:
AMD XP4400, 2x7800 in SLI, 2G of RAM and X-Fire FPS sound card.

Have the same symptons as the rest, i.e. when there is 3d models on the screen I'm down to 1-3 fps and the mouse get very hard to control.

Cheers
Mark

Ps. here is my DxDiag if you can use it for something: http://www.twins4ever.dk/files/DxDiag.txt
Title: Sluggish FPS on WinXP
Post by: MeatwaD on April 09, 2007, 10:43:01 pm
I too am having the same probelms, but i did notice somthing.  When i try to run it on my new Dual Core machine, it slows down as described before.  But i loaded it up on my old computer with the old style cpu (non-dual core) it runs beautifully on even the highest settings.  could this have somthing to do with Dual Core machines, as i noticed that all the ones that seem to be having these probelms in this thread are all dual core cpu's.
Title: Sluggish FPS on WinXP
Post by: Kaerius on April 09, 2007, 10:55:07 pm
The problem persists even if I only give the game access to one core(running it like it was single core...)

And yeah it randomly goes on and off... anyway I'm currently running S.T.A.L.K.E.R: Shadow of Chernobyl on maxed settings... and the highest fps I've ever seen in UFO:AI is about 60 fps... it's like it doesn't use my graphics card at all.
Title: Sluggish FPS on WinXP
Post by: Alienshooter on April 11, 2007, 07:54:25 am
I have the same problem, when the soldiers are on-screen, then the fps drop to pretty well unplayable rates. When I scroll over to where no-one is, then it speeds up just fine. I am running Vista, and have a Core 2 duo E6600, with a Geforce 7950 512MB. If one or maybe 2 soldiers are on the screen, then it is playable, but when they are all on, as in when they land. then the fps are totally unbearable.
Title: Sluggish FPS on WinXP
Post by: MeatwaD on April 17, 2007, 12:02:39 am
Well, ive tried it on three computers and succes on all three accounts.  Ive found that if you go into your Buy/Sell menu and sell and then buy back all you "Primary" wepons.  In onther words, just start at the top of the wepons listing, for me assault rifles are at the top.  If you have 5 on hand, sell them, and then you can imidietly buy the 5 back.  Repeat this will all your primary weapons, dont have to mess with ammo ar anything else, just the wepons.  So far this has gotten rid of any lag, both in the arming menu and during the missions.  Really not sure why this works, but so far it does.
Title: Sluggish FPS on WinXP
Post by: Malick on April 17, 2007, 11:09:38 am
That's "interesting" MeatwaD... I wonder how you found this out. Anyway, I'll try this trick when I get home.

Is it because the primary weapons model are wrongly loaded in video memory ? I noticed that the soldier arming screen (in aircraft menu) lags like hell only for primary weapons, not for secondary/misc/armor. Seems like a weapon in particular causes lag. Didn't have time to find out which one exactly.

How many polys in each weapon, BTW ? I don't really believe this could come from this, because other demanding games (e.g. Oblivion, Armed Assault, STALKER, FEAR) seem to work fine for most of us.

Malick
Title: Sluggish FPS on WinXP
Post by: zodde on April 29, 2007, 05:11:11 pm
Hi all!.

I can confirm this bug. And it seams to be related to newer systems using Dual Core or PCI Express cards. Or newer Nvidia Cards.

Old system without any problems

P4 478 2.8Ghz
Geforce 6600 GT 128 MB AGP
1 Gig memory
XP SP1

New system with lag in equip mode and in tactical maps when I can se many of my soldiers.

Dual Core E6400 2.12 Ghz
Geforce 7600 GT 256 MB PCI Express
2 Gig memory
XP SP2

So one or more of the above seams to cause this lag. In equip window i had somewhat lag in all "modes" (Master, Secondary etc etc except for Armor and it was empty of things).

This makes the game unplayable for me right now and this issue needs to be adressed ASP. No point releaeing the 2.1.1 until this is fixed in my opinion.

Otherwise, the little I played the game on the old system (just about 5-6 times before the CPU burned!) shows me that this is a great game! Now only this bug has to be found and solved.

Regards
Zodde
Title: Sluggish FPS on WinXP
Post by: Cougar_DK on May 01, 2007, 05:28:42 pm
I have just installed version 2.1.1 win 32 and I still have this problem.  My pc is an AMD XP 64 4400 and Nvidia 8800 GTS 640 OC2. Running XP Pro DK.

(Got new graphic card, since my last post)
Title: Sluggish FPS on WinXP
Post by: zodde on May 02, 2007, 10:41:10 am
I have seen no response from the Dev Team regarding this issue lately, has this problem been recognized or not?

Right now is the game unplayable for me, and as it seams to be a bunch of other users that have the same problem.
Title: Sluggish FPS on WinXP
Post by: Zenerka on May 02, 2007, 01:27:10 pm
The problem is not recognized, because... it is not reproduceable here - on Windows XP. I have no clue what to advise/what to do in this case. :(
Title: Sluggish FPS on WinXP
Post by: Zenerka on May 02, 2007, 01:51:02 pm
Maybe just one tip, which had helped some other people with Windows and "slow FPS" problem, to quote:
"I actually found the solution to that problem of FPS. In my NVIDIA Control Panel, the visual settings were forced. I just had to "let the 3D application decide" of the settings. Then OpenGL is activated by UFO:AI. Thanks for having led me in the good direction!"
Title: Sluggish FPS on WinXP
Post by: Mattn on May 02, 2007, 05:40:54 pm
a reply by Greg Winters:
Quote

I have an 8800GTS and solved the problem by turning off the setting called
"Threaded optimization" in the nVidia control panel under "Manage 3D
Settings" page.  I am currently using the 158.19 drivers.  Changing the
affinity for the application did not help at all as has been noted in this
thread, but forcing the driver itself to use one core helped significantly.
Title: Sluggish FPS on WinXP
Post by: zodde on May 02, 2007, 06:43:07 pm
Hi again!

The suggestion with turning off Threaded optimization" solved the problem. Now Im back to 45fps in tactical mode.

If this is something that cant be addressed by UFO AI team I suggest this is to be inserted in the manual. I would guess all the newer Nvidia Cards will have this problem since it have been reported from atleast 7600 GT and 8600 GT  cards...

With regards
Title: Sluggish FPS on WinXP
Post by: Cougar_DK on May 02, 2007, 08:11:24 pm
And it worked for me too. Great!  :D
Title: Sluggish FPS on WinXP
Post by: Mattn on May 03, 2007, 11:13:19 am
to help us to track this issue down, could you please try to activate this feature again, start ufo, open the gameconsole, type
Code: [Select]
gl_finish 1
exit ufo and start again.

if this doesn't help, you have to set gl_finish to 0 with your next ufo start

thanks
Title: Sluggish FPS on WinXP
Post by: zodde on May 03, 2007, 08:46:44 pm
Hi.

I tried the gl_finish 1.

I saw no effect. With the multi threading option turned on, the Fps was around 5-10 fps in combat and equipmode.

Im happy to try out other settings if requested!

Just a note for comparison. I tried 3dbechmark05. With this setting turned off i got 6600. With it turned on I got 6000 about. So it might just be some crappy drivers from Nvidia aswell.
Title: Sluggish FPS on WinXP
Post by: harsh on May 03, 2007, 09:35:23 pm
This does seem like a driver issue, since this setting affects something outside of the control of the application.  Oddly, Quake3 seems to run just fine, but I don't know if it is because of the stupid nVidia CP switching settings for it.

I haven't really noticed a performance change in other games with the threading opt. disabled, but I haven't been paying attention.
Title: Sluggish FPS on WinXP
Post by: Reenen on May 04, 2007, 09:24:18 am
Hi,

What is the system requirements for the game?

It works at my work, but it is sluggish on the Global map (10fps), which to me is really slow.  The Tactical map is slow as well (17fps).

This is after I went down resolution to 640x480.

I have:
Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 2 (2600.xpsp_sp2_gdr.061219-0316)
Language: English (Regional Setting: English)
System Manufacturer: MICRO-STAR INTERNATIONAL CO., LTD
System Model: MS-7235
BIOS: Phoenix - AwardBIOS v6.00PG
Processor: Intel(R) Core(TM)2 CPU          6400  @ 2.13GHz (2 CPUs)
Memory: 1022MB RAM
Page File: 599MB used, 1860MB available
Windows Dir: C:\WINDOWS
DirectX Version: DirectX 9.0c (4.09.0000.0904)
DX Setup Parameters: Not found
DxDiag Version: 5.03.2600.2180 32bit Unicode


Card name: RADEON X300/X550 Series
Display Memory: 256.0 MB


At home, the game doesn't start up.  I don't have the specs here, but it sucks. :-)

Here's my guess though:
P4 2.4 or so, on board graphics, and 256mb ram.
Title: Sluggish FPS on WinXP
Post by: Mattn on May 04, 2007, 09:47:08 am
try to switch to single core - right click ufo.exe in taskmanager to set this
Title: Sluggish FPS on WinXP
Post by: Reenen on May 04, 2007, 01:42:49 pm
Nah... that didn't improve the FPS.

The FPS in geoscape is what really bothers me.  The tactical seems fine.
Title: Sluggish FPS on WinXP
Post by: zodde on May 04, 2007, 10:35:51 pm
Ok I tried that. I turned back on the Threaded Optimization and started the game, entered the equip mode and the FPS crashed down to 7 fps. Went back to desktop and changed the no of CPU:s the game could use down to one.

The game went straight back up to 45 Fps again. I then tried to turn back on so it could use two CPU:s but the FPS stayed at 45.

So it seams that there is some kind of problem that could be handled from the UFO AI code? Are you guys using threads?

More things you want me to test out? Glad I can help!
Title: Sluggish FPS on WinXP
Post by: Alienshooter on May 05, 2007, 02:35:00 am
I downloaded 2.1.1, then switched my threaded otimization off in the NVIDEA control panel as mentioned (it had been set to auto), and voila! Works like a charm and is playable again.

I can't exactly remember, but It seems like this problem appeared when I upgraded to driver 100.65, and continued with the current driver 158.18 (I am using VISTA and have a Geforce 7950).
Title: Sluggish FPS on WinXP
Post by: Skylinux on May 15, 2007, 06:05:28 pm
Quote

I have an 8800GTS and solved the problem by turning off the setting called
"Threaded optimization" in the nVidia control panel under "Manage 3D
Settings" page. I am currently using the 158.19 drivers. Changing the
affinity for the application did not help at all as has been noted in this
thread, but forcing the driver itself to use one core helped significantly.


I just wanted to add my comment, the game went from "playable" to being "addictive" with the change above. I had to play the mining mission before applying the above fix and the FPS where sooo low. Now I can equip my soldiers in half the time because the mouse moves without lag.
May I add the solution to the FAQ?
Title: Sluggish FPS on WinXP
Post by: harsh on May 16, 2007, 09:54:01 pm
You've got my vote.  I didn't realize that there was a cetralized location for this sort of thing.
Title: Sluggish FPS on WinXP
Post by: Skylinux on May 25, 2007, 04:44:05 am
Done.
http://ufoai.ninex.info/wiki/index.php/Manual/FAQ#Windows
Title: Sluggish FPS on WinXP
Post by: wake?up on May 27, 2007, 05:55:28 am
Hi.
I got the same Problem.

First the game runs at 45 fps at very high settings at the "spedition6" map,
after i loaded the savegame, directly saved before the landing vraft reaches the mission place, the game runs at 4 fps, but only when one or
more of the soldiers are on screen.

My PC:
AMD X2 - 4200
GF 7800 GTX / 256MB
2GB RAM
Win XP Home SB
UFO AI @ 1024x768 resolution (1280x didnt work)

Its strange, cause first it runs without problems,
then with same settings, the game got anplyable.
Is me the only one with "first runnen / then dont" ?

mfg, wake
Title: Sluggish FPS on WinXP
Post by: JPC28 on June 04, 2007, 01:22:03 am
Im having the same problem with sluggish performance when in the equipment screen and in the 3d map whenever the units are visible plus choppy sound.  I am using an old nvidia 6600 and my system is dual core. I can't find the option to turn off threaded optimization in the nvidia manage 3d settings.  :cry:
Title: Sluggish FPS on WinXP
Post by: JPC28 on June 04, 2007, 01:50:48 pm
Problem solved! Switching to just 1 cpu solved the problem, game runs smoothly now. Must be a problem with dual core cpu's.

Windows Task Manager >Processes > right click UFO.exe click on set affinity and uncheck one of the cpu's. the game should run fine now :)
Title: Sluggish FPS on WinXP
Post by: Berserker on August 14, 2007, 01:25:55 pm
Quote from: "JPC28"
Problem solved! Switching to just 1 cpu solved the problem, game runs smoothly now. Must be a problem with dual core cpu's.

Windows Task Manager >Processes > right click UFO.exe click on set affinity and uncheck one of the cpu's. the game should run fine now :)

For automatic select CPU core, use this code:
SetThreadAffinityMask(GetCurrentThread(), mask);
For example:
mask=1 - use core #0
mask=2 - use core #1
mask=3 - use cores #0 and #1
For default I recomended :
SetThreadAffinityMask(GetCurrentThread(), 1);

More simple way to solve this problem:
SetPriorityClass (GetCurrentProcess(), HIGH_PRIORITY_CLASS);
or
SetPriorityClass (GetCurrentProcess(), REALTIME_PRIORITY_CLASS);

Regards
Berserker
Title: Sluggish FPS on WinXP
Post by: Destructavator on August 15, 2007, 01:11:35 am
Just so people know, I have a dual-core desktop that runs this game just fine in Windows MCE without any special tweaks, at 1280x1024, but I have Intel Core CPUs in a Dell XPS, not AMD.

It bombs out with errors if I try to run it under Vista though, although in Vista I didn't try any tweaking yet.  (My desktop triple-boots.)

As a side note, I'm currently working on reloading the new Kubuntu Gustsy Beta (Debian-based Linux) on my laptop, and it has intel-based video hardware (I think the front page mentioned this), and I'm curious to see if the game runs under that environment.

EDIT: Forgot to mention, my desktop has an Nvidia video card.
Title: Sluggish FPS on WinXP
Post by: Berserker on August 15, 2007, 04:48:09 am
I'm not test Vista, may be this OS have not this bug.
I have Windows XP SP2 + standart tweaks for dual core CPU
Title: Re: Sluggish FPS on WinXP
Post by: Tommy on May 01, 2008, 12:36:56 pm
I got same problem.
I cant change resolution to 1280x1024 (LCD Panle) I tryed to change manualy in config but nothing changed.
I change resolution in game but nothing hapends. After restart it`s still at 1024x768.
Framerate ~50-60fps normal ?

I got Windows Vista x64 on single core AMD Athlon64 4000+ (4GB RAM) with nVidia GF-7800GT