project-navigation
Personal tools

Author Topic: Awful framerates on my brand new PC?  (Read 11714 times)

zodde

  • Guest
Awful framerates on my brand new PC?
« Reply #15 on: July 11, 2007, 03:07:55 pm »
We have had this issue before, remember guys?

The problem is the dual core and the Nvidia driver.

There are two solutions for this issue, I prefer the one above the other.

1. In the Nvidia driver settings, there are a setting to turn off the use of multithreads. (Dont remember the exact name anymore). Doing this will force the driver to do all its work on one of the CPU:s...  This could ofcourse be a negative thing on other games.

2. The other solution, which I use is to start UFO AI. When ALT-TAB back to desktop, press ALT-CTRL-DEL and go to the processlist. on UFOAI.EXE rightclick and select SET AFFINITY. It is default ticked to use both CPU:s. Untick one of them and go back to the game.. It should now run perfectly fine.

What is causing this I dont know, I suspect it is something in the UFO AI code that is not quite good regarding multiple CPU support.

Good luck!

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Awful framerates on my brand new PC?
« Reply #16 on: July 11, 2007, 05:22:49 pm »
the latest ufo:ai test versions of 2.2 should fix this - could somebody please verfiy this?

DrJonez

  • Guest
Awful framerates on my brand new PC?
« Reply #17 on: July 11, 2007, 09:13:06 pm »
Wow, this game uses the Quake 2 engine? It's kinda hard to recognize it ;)

Kamu

  • Guest
Awful framerates on my brand new PC?
« Reply #18 on: July 13, 2007, 01:59:25 pm »
Quote from: "Mattn"
the latest ufo:ai test versions of 2.2 should fix this - could somebody please verfiy this?


Hi Matt,

I too, have had the problems. Am downloading the beta version now and will get back to you!

I am very impressed at what you have done with this game. It looks great and it is fun!

Will reply shortly.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Awful framerates on my brand new PC?
« Reply #19 on: July 13, 2007, 02:19:26 pm »
you have to grab the sourcecode from our svn in order to be able to test this - there is no installer yet which includes the patches

Kamu

  • Guest
Awful framerates on my brand new PC?
« Reply #20 on: July 13, 2007, 02:26:20 pm »
Quote from: "Mattn"
you have to grab the sourcecode from our svn in order to be able to test this - there is no installer yet which includes the patches


Oh dear. I am on windows and have no compilers/tools at all.

Offline blondandy

  • Sergeant
  • *****
  • Posts: 391
    • View Profile
Awful framerates on my brand new PC?
« Reply #21 on: July 13, 2007, 03:01:44 pm »
hooray!

all you need to know is on the wiki
http://ufoai.ninex.info/wiki/index.php/Main_Page
see "getting the source" and "compiling"

all the tools you need are free of charge.

Kamu

  • Guest
Awful framerates on my brand new PC?
« Reply #22 on: July 13, 2007, 03:44:25 pm »
Quote from: "blondandy"
hooray!

all you need to know is on the wiki
http://ufoai.ninex.info/wiki/index.php/Main_Page
see "getting the source" and "compiling"

all the tools you need are free of charge.


Ah! I was searching the forum for a topic on compiling, and it was in the wiki. Thanks much.

....

http://ufoai.ninex.info/wiki/index.php/Compile_for_Windows

Not an awful lot of detail :P.

Kamu

  • Guest
Awful framerates on my brand new PC?
« Reply #23 on: July 13, 2007, 05:54:58 pm »
Ok, I compiled the svn version Matt, I run the game and as soon as I get to Aircraft --> Assign Soldiers --> Next. (On the equip the soldiers with equipment screen) The FPS drops from 68~ to 5FPS. I believe this is the same problem in actual game play too, when the FPS drops to non-playable.

Windows XP Pro, Intel Core2 Duo, 2gb ddr2 RAM, Nvidia 7600GT.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Awful framerates on my brand new PC?
« Reply #24 on: July 13, 2007, 06:43:53 pm »
do you switched to single thread usage?

Kamu

  • Guest
Awful framerates on my brand new PC?
« Reply #25 on: July 13, 2007, 07:00:40 pm »
Now it seems to be working fine. I am not entirely sure if windows remembers processor affinity, because when I alt-tab out of the game, it is killed.

In all the places I got terrible FPS seems to be running at the max (68.6)?

Thanks for your help.

EDIT: Reset computer and the extremely low FPS is back. Looks like it isn't fixed.

Kamu

  • Guest
Awful framerates on my brand new PC?
« Reply #26 on: July 15, 2007, 08:52:13 am »
Ok dudes, I did some testing. Changing the nvidia threaded optimization changed squat. Changing the processor affinity did squat.

Changing my texture quality, trioscopicdoodar to 0, multitexturing off, texture LOD off, texture compression did squat all.

I think I may have narrowed it down.

First: in game test.

The ship & the crew being rendered drops it down to about 12fps, as seen here:


How ever, if I scroll away from the crew maybe a little less than a screen away, it rockets to 40fps:



I think it has something to do with drawing all the crew members, something isn't optimized. If I spread the crew members around away from the starting point, the FPS increases quite substantially.

Geoscape test:

The selecting of team members screen, running at a cool 58FPS.


How ever, as soon as I next to the equip screen, the FPS drops to a horrible 12fps.


If i change from Primary weapons to armour, the FPS rockets to 50fps.


In this case, the drawing of all these items are absolutely murdering the frame rate, but why is it doing this?

I am not sure if this the same problem the topic starter is having, but this adversely effects the playability of the game.

I hope I have been of some help.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Awful framerates on my brand new PC?
« Reply #27 on: July 15, 2007, 10:56:32 am »
when switching to armor  everything work fine... so could you please verfiy whether the framedrop is also in the secondary menu or misc menu?

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Awful framerates on my brand new PC?
« Reply #28 on: July 15, 2007, 11:00:42 am »
which were the weapons you equipped your team with?

Kamu

  • Guest
Awful framerates on my brand new PC?
« Reply #29 on: July 15, 2007, 01:09:02 pm »
Quote from: "Mattn"
when switching to armor  everything work fine... so could you please verfiy whether the framedrop is also in the secondary menu or misc menu?


Secondary was ~17 FPS, mouse movement and music was a tiny bit more improved than primary menu, misc was again ~17FPS and mouse movement and music "jerkiness" was slightly improved again.

I think it is dependent on the amount of items being drawn to the screen. As I found another instance of this:



As you can see, I am getting a nice 59 FPS, but as soon as I open the inventory screen:



It drops quite alot just for a simple inventory window.

The team was equipped with the default weapons (I didn't change a thing, was straight from the starting of a new "Very Easy campaign").