Author Topic: High CPU usage for running Tremulous  (Read 3413 times)

kongkin90

  • Posts: 8
  • Turrets: +0/-0
High CPU usage for running Tremulous
« on: June 18, 2010, 10:58:13 am »
After i reinstall my XP, CPU usage always stay at 8x%-9X% for running Tremulous. Even at muen screen.
What problems am i facing ???

Sorry for my poor English

F50

  • Posts: 740
  • Turrets: +16/-26
Re: High CPU usage for running Tremulous
« Reply #1 on: June 18, 2010, 03:13:58 pm »
Quake 3 based games are cpu bound, so yes, expect to be using all of one core.
"Any sufficiently advanced stupidity is indistinguishable from malice." -- Grey's Law


Cadynum

  • Posts: 222
  • Turrets: +29/-13
Re: High CPU usage for running Tremulous
« Reply #2 on: June 18, 2010, 09:36:59 pm »
For some reason, at least on my setup, in gpp cpu usage will go from ~25% to ~100% when I set com_maxfps above 100.
I have no idea why actually, just tested it right now (in the menus).

Edit: I did some more testing on UTCS:

FPS - CPU utilization (for one core)
60: 11%
70: 12%
80: 17%
90: 45%
91: 98%
333: 97%

The fps is stable all the time.
« Last Edit: June 18, 2010, 09:45:05 pm by Cadynum »

F50

  • Posts: 740
  • Turrets: +16/-26
Re: High CPU usage for running Tremulous
« Reply #3 on: June 19, 2010, 01:18:03 am »
woah, interesting.
"Any sufficiently advanced stupidity is indistinguishable from malice." -- Grey's Law


kongkin90

  • Posts: 8
  • Turrets: +0/-0
Re: High CPU usage for running Tremulous
« Reply #4 on: June 19, 2010, 10:05:55 am »
For some reason, at least on my setup, in gpp cpu usage will go from ~25% to ~100% when I set com_maxfps above 100.
I have no idea why actually, just tested it right now (in the menus).

Edit: I did some more testing on UTCS:

FPS - CPU utilization (for one core)
60: 11%
70: 12%
80: 17%
90: 45%
91: 98%
333: 97%

The fps is stable all the time.

Wow, that is true on me. thx a lot

Kiwi

  • Posts: 859
  • Turrets: +29/-9
Re: High CPU usage for running Tremulous
« Reply #5 on: June 19, 2010, 04:13:27 pm »
90: 45%
91: 98%
333: 97%
That's odd...

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: High CPU usage for running Tremulous
« Reply #6 on: June 19, 2010, 06:17:39 pm »
not really, the fps limiter doesn't trust the operating system to accurately sleep less than 10ms, so it busy-waits instead. there are probably some circumstances where that threshold can be a lot lower, but the problems with setting it too low are worse than those with setting it too high.
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

gimhael

  • Posts: 546
  • Turrets: +70/-16
Re: High CPU usage for running Tremulous
« Reply #7 on: June 19, 2010, 06:46:47 pm »
That depends on the client, Tremfusion doesn't do that busy waiting even for small wait times.

Also the time to wait in milliseconds is computed by integer division which rounds down, so 90 fps -> wait 1000 / 90 = 11.111111 -> 11 ms, while 91 fps -> wait 1000 / 91 = 10.98... -> 10 ms. So anything more than 90 fps means the default client tries to grab 100% CPU.