Game Development Community

Performance issues on multicore + fix

by James Thompson · in Torque Game Engine Advanced · 10/02/2006 (12:47 pm) · 16 replies

Hi,

A release build give 2-3 fps on my pc :(
I have a 7800gs gfx card.
It goes up to 12fps in the gui's :)

Is this normal?

Thanks

For the fix: go the last post

About the author

Been a programmer for a few years, started when I was quite young and got into it so carried on through my life. Currently studying at Kent Uni in Canterbury.


#1
10/02/2006 (12:51 pm)
"Is this normal?"

Hah, I hope that question wasn't serious.
#2
10/02/2006 (12:55 pm)
Absolutely not normal!
Did you check if you are using the release or debug version of directx?
#3
10/02/2006 (12:55 pm)
Well I was wondering if it was my pc, or Torque AT
#4
10/02/2006 (12:56 pm)
Most of its final release, some files are final debug
#5
10/02/2006 (12:58 pm)
How much video ram do you have? What resources are you using? there are a couple threads are here about FPS issues and some settings you can adjust which may help (forcing textures to low quality so that your video card isn't spending all its time paging textures in and out instead of drawing teh scene). However it sounds like your having more issues than that.
#6
10/02/2006 (12:59 pm)
I'm willing to bet you have a dual core processor. Try assigning the process to a single CPU and see what happens.
#7
10/02/2006 (1:04 pm)
@ Pauliver - 256mb, 50% cpu runtime and 101mb ram.
@ Peter - yes, but setting the affinity to cpu 0 didnt help :(


It shouldnt do that in the gui though should it?
#8
10/02/2006 (1:08 pm)
Exact figures:

Avg:
4fps - gui
4fps - ingame

Highest
7fps - gui
4fps - ingame

Lowest
1fps - gui
3fps - ingame
#9
10/02/2006 (1:19 pm)
I used runfirst.exe
Thanks for the help

Edit: there must be a bug in the multiprocessor code
#10
10/02/2006 (1:21 pm)
Not sure what the problem is, but just wanted to note that I have a 7800 also, using the latest drivers and usually get 70-300 fps depending on the scene. Won't help in eliminating the problem, but at least you know that TSE does perform well with 7800s in most setups.
#11
10/02/2006 (1:27 pm)
Dont worry, i've eliminated the problem.

Thanks peter!

For a year i've been thinking its TSE, now i find out its my cpu...
#12
10/02/2006 (1:39 pm)
FIX:

In winwindow.cpp

in the public bit of the WinTimer class just add:

SetProcessAffinityMask( GetCurrentProcess(), 1 );

EDIT: Or, just dont use mperfcounter, which would reduce performance (compared to setaffinity)
#13
10/08/2006 (9:20 am)
Thanks SO much for the RunFirst.exe suggestion. I was about to give up on TSE!
#14
10/14/2006 (1:57 am)
I have an AMD dual core, 2 7800's and TSE , not sure what version (ms) i'm currently using, runs ok, I do get that problem with having to set affinity in TGE and TLK tho..

Where's RunFirst? 456 FPS?! I usually get 100-300
#15
10/14/2006 (2:03 am)
I get 100-300 fps now, that was from gui's and ingame, in game there was just a sky :)

Runfirst: www.activeplus.com/us/freeware/runfirst/
#16
10/14/2006 (2:33 pm)
I dont think i needed to set affinity with TSE, just TGE&TLK to get normal framerates, I did install the dual core optimizer from AMD tho...