the Rainbow Networks
+++eXy FFA
Map: q3tourney4
Players: 2 / 18
The golden pot › RAINBOW NETWORKS › Tech & Support › 0.8.1 low performance
0.8.1 low performance
Something wrong with our servers or your system?
Go to page Previous  1, 2, 3, 4  Next
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexTech & Support
View previous topic :: View next topic  
Author Message
kernel_panic
Übergod
Übergod


Joined: Aug 28, 2007
Posts: 751
Location: uk

PostPosted: Wed Nov 19, 2008 8:24 pm    Post subject: Re: 0.8.1 low performance Reply with quote

I get an error when trying to compile the patched sources you posted above...

Code::
CC code/client/qal.c
In file included from code/SDL12/include/SDL_config.h:42,
                 from code/SDL12/include/SDL_stdinc.h:28,
                 from code/SDL12/include/SDL_main.h:26,
                 from code/SDL12/include/SDL.h:28,
                 from code/client/../sys/sys_loadlib.h:38,
                 from code/client/qal.c:32:
code/SDL12/include/SDL_config_minimal.h:39: error: conflicting types for ‘uintptr_t’
/usr/include/stdint.h:129: error: previous declaration of ‘uintptr_t’ was here
make[2]: *** [build/release-linux-i386/client/qal.o] Error 1
make[2]: Leaving directory `/home/jcarlos/software/games/openarena-engine-0.8.1'
make[1]: *** [targets] Error 2
make[1]: Leaving directory `/home/jcarlos/software/games/openarena-engine-0.8.1'
make: *** [release] Error 2

_________________
"Fuelling off topic babble since day 1."
Back to top
View user's profile
Falkland
Übergod
Übergod


Joined: Aug 01, 2008
Posts: 922
Location: Nowhere

PostPosted: Wed Nov 19, 2008 9:49 pm    Post subject: Re: 0.8.1 low performance Reply with quote

try to install the package libsdl1.2-dev

Code::

apt-get install libsdl1.2-dev

Back to top
View user's profile
kernel_panic
Übergod
Übergod


Joined: Aug 28, 2007
Posts: 751
Location: uk

PostPosted: Wed Nov 19, 2008 11:07 pm    Post subject: Re: 0.8.1 low performance Reply with quote

Jeje, that was it. Now I have to try it.

_________________
"Fuelling off topic babble since day 1."
Back to top
View user's profile
Falkland
Übergod
Übergod


Joined: Aug 01, 2008
Posts: 922
Location: Nowhere

PostPosted: Wed Nov 19, 2008 11:59 pm    Post subject: Re: 0.8.1 low performance Reply with quote

argh ...

oooooooook ... after testing oa081 a bit , I found that the major difference in performances between the ioquake3 based oa071 binaries and the oa081 ones is caused by unlagged : when unlagged is active , it damn counts also on single player mode ( damn ... I had difficult to finish at first place the oa_rpg3dm2 level with bots at nightmare level O_O , while I always have no problem with oa071 - no more problem after disabling unlagged )

So ...

I think it's better having unlagged disabled and using it only when it is needed ( eg on servers with a ping > 150-200 and that have it enabled )

So I've edited 2 cfg files called "delag_on.cfg" and "delag_off.cfg" and binded them as follow in my config :

Code::
bind F6 "exec delag_on.cfg"
bind F7 "exec delag_off.cfg"


- delag_on.cfg

Code::
set g_delagHitscan "1"
set g_delag "1"
set cg_delag "1"
set cg_optimizePrediction "1"

- delag_off.cfg

Code::
set g_delagHitscan "0"
set g_delag "0"
set cg_delag "0"
set cg_optimizePrediction "0"

g_delag and cg_delag are not strictly unlagged2 cvars , but they're used in NoGhost ( unlagged version 1 ? ) ... and cg_optimizePrediction should have no effects if g_delagHitscan is zero ... but better beeing sure and setting all to zero.

EDIT :
- cg_delag -> unlagged2 client side cvar for activating unlagged features (*)
- cg_optimizePrediction -> unlagged2 cvar for activating optimized prdiction code (*)
- g_* -> server side cvars

(*) both in OA081

tnx to 0xdan for let me look better at the oa source code ;)


Last edited by Falkland on Mon Nov 24, 2008 3:19 pm; edited 1 time in total
Back to top
View user's profile
aanti
Forum Addict
Forum Addict


Joined: Jan 26, 2008
Posts: 269
Location: Frankfurt am Main

PostPosted: Thu Nov 20, 2008 10:47 am    Post subject: Re: 0.8.1 low performance Reply with quote

wow, nice find falkland!

_________________
Back to top
View user's profile
kernel_panic
Übergod
Übergod


Joined: Aug 28, 2007
Posts: 751
Location: uk

PostPosted: Sat Nov 22, 2008 12:51 pm    Post subject: Re: 0.8.1 low performance Reply with quote

The compiled version of the engine crashes here as soon as I press "fight" in any map:

[code]Received signal 11, exiting...
----- CL_Shutdown -----
OpenAL capture device closed.
RE_Shutdown( 1 )
-----------------------
----- Server Shutdown (Signal caught) -----
==== ShutdownGame ====
AAS shutdown.
----- Server Shutdown (Server fatal crashed: VM_Free(qagame) on running vm) -----
==== ShutdownGame ====
Segmentation fault[/quote]

And disabling delag in the engine shipped with OA didn't improve things...

_________________
"Fuelling off topic babble since day 1."
Back to top
View user's profile
Falkland
Übergod
Übergod


Joined: Aug 01, 2008
Posts: 922
Location: Nowhere

PostPosted: Sat Nov 22, 2008 4:36 pm    Post subject: Re: 0.8.1 low performance Reply with quote

kernel_panic wrote:
The compiled version of the engine crashes here as soon as I press "fight" in any map:

Code::
Received signal 11, exiting...
----- CL_Shutdown -----
OpenAL capture device closed.
RE_Shutdown( 1 )
-----------------------
----- Server Shutdown (Signal caught) -----
==== ShutdownGame ====
AAS shutdown.
----- Server Shutdown (Server fatal crashed: VM_Free(qagame) on running vm) -----
==== ShutdownGame ====
Segmentation fault

And disabling delag in the engine shipped with OA didn't improve things...

:/

try to install libopenal-dev and recompile the engine :

Code::
 apt-get install libopenal-dev

Or at least by adding only -O3 -march=native -mtune=native to OPTIMIZE default var

But here it works well , without any crashes in both modes : single and multiplayer :\

- Pentium M 1.4 GHz
- 512 MB
- ATI Mobility Radeon 9200 64 MB
- Ubuntu 8.04.1
- kernel : 2.6.24.3-web100-rt-rev13 #1 SMP PREEMPT RT Mon Nov 17 17:14:28 CET 2008 i686 GNU/Linux
Back to top
View user's profile
kernel_panic
Übergod
Übergod


Joined: Aug 28, 2007
Posts: 751
Location: uk

PostPosted: Sat Nov 22, 2008 6:38 pm    Post subject: Re: 0.8.1 low performance Reply with quote

I've got libopenal-dev installed...maybe I'm missing something else, cause I can't get this to work, even with just those three optimisations you mentioned.

Bahg.

Thanks, anyway.

_________________
"Fuelling off topic babble since day 1."
Back to top
View user's profile
Falkland
Übergod
Übergod


Joined: Aug 01, 2008
Posts: 922
Location: Nowhere

PostPosted: Sat Nov 22, 2008 7:00 pm    Post subject: Re: 0.8.1 low performance Reply with quote

Ops ... I've talked too early : that's what happened while I was playing in single player mode

Code::
Received signal 11, exiting...
----- CL_Shutdown -----
RE_Shutdown( 1 )
-----------------------
----- Server Shutdown (Signal caught) -----
==== ShutdownGame ====
AAS shutdown.
----- Server Shutdown (Server fatal crashed: VM_Free(qagame) on running vm) -----
==== ShutdownGame ====
Error: BotLibShutdown: bot library used before being setup
recursive error after: VM_Free(qagame) on running vm

BTW ... if u're using Debian SID , there's a change in openal :

s_alDriver cvar should point to Debian SID openAL version , which is libopenal.so.1 instead of libopenal.so.0 ( ubuntu hardy )

And of course the only changes I've made on sources are
- applying ql_mouse_accel patch
- modifing OPTIMIZE string ( CFLAGS )
- adding VOIP directives in Makefile.local

EDIT : it could be useful to know if developers that have splitted oa sources in engine and mod sdk sources , have used the same ioquake3 revision for both.
Back to top
View user's profile
0xdan
Happy Camper
Happy Camper


Joined: Jun 29, 2008
Posts: 61
Location: Europe

PostPosted: Mon Nov 24, 2008 7:51 am    Post subject: Re: 0.8.1 low performance Reply with quote

Just a note about unlagged: cg_delag is a cvar found on unlagged 2.01 and is the client option to toggle use of unlagged code on server running Unlagged. The g_* cvar are server-side only.

_________________
:wq
Back to top
View user's profile
Falkland
Übergod
Übergod


Joined: Aug 01, 2008
Posts: 922
Location: Nowhere

PostPosted: Mon Nov 24, 2008 3:10 pm    Post subject: Re: 0.8.1 low performance Reply with quote

0xdan wrote:
Just a note about unlagged: cg_delag is a cvar found on unlagged 2.01 and is the client option to toggle use of unlagged code on server running Unlagged. The g_* cvar are server-side only.

Yeah , true ... and that's the same in OA081 ( not sure that was the same on OA080 )

Code::

// code/cgame/cg_main.c

...

//unlagged - client options
vmCvar_t	cg_delag;
//vmCvar_t	cg_debugDelag;
//vmCvar_t	cg_drawBBox;
vmCvar_t	cg_cmdTimeNudge;
vmCvar_t	sv_fps;
vmCvar_t	cg_projectileNudge;
vmCvar_t	cg_optimizePrediction;
vmCvar_t	cl_timeNudge;
//vmCvar_t	cg_latentSnaps;
//vmCvar_t	cg_latentCmds;
//vmCvar_t	cg_plOut;
//unlagged - client options

...



Code::

// code/game/g_main.c 

...

//unlagged - server options
vmCvar_t	g_delagHitscan;
vmCvar_t	g_truePing;
vmCvar_t	sv_fps;
//unlagged - server options

...

Back to top
View user's profile
aanti
Forum Addict
Forum Addict


Joined: Jan 26, 2008
Posts: 269
Location: Frankfurt am Main

PostPosted: Tue Nov 25, 2008 5:06 pm    Post subject: Re: 0.8.1 low performance Reply with quote

kernel_panic! try adding "nopat" kernel boot option to your /boot/grub/menu.lst

mine looks like this:
Code::
kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/680108fd-c062-4e08-ad37-af995d08855d ro nopat vga=795

www.nvnews.net/vbullet...p?t=117572

fps stutters are gone for good at my machine!
good luck
Back to top
View user's profile
Falkland
Übergod
Übergod


Joined: Aug 01, 2008
Posts: 922
Location: Nowhere

PostPosted: Tue Nov 25, 2008 5:42 pm    Post subject: Re: 0.8.1 low performance Reply with quote

aantipop wrote:
kernel_panic! try adding "nopat" kernel boot option to your /boot/grub/menu.lst

mine looks like this:
Code::
kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/680108fd-c062-4e08-ad37-af995d08855d ro nopat vga=795

www.nvnews.net/vbullet...p?t=117572

fps stutters are gone for good at my machine!
good luck

Actually I have also fps slowing down while playing with my self-compiled 2.6.24 series kernel ( 2.6.24.3-web100-rt-rev13 - based on ubuntu linux sources 2.6.24-22.44 )
btw more less than with previous one ( 2.6.24.3-web100-rt-rev12 : based on ubuntu linux sources 2.6.24-21.43 ) ...

And I have an ATI graphic card .

Maybe with 2.6.27 or with the imminent 2.6.28 it will be better :/

EDIT : btw it seems to be a problem related to glXSwapBuffers(); OpenGL function
www.nvnews.net/vbullet...ht=x86_pat


Last edited by Falkland on Tue Nov 25, 2008 5:48 pm; edited 1 time in total
Back to top
View user's profile
aanti
Forum Addict
Forum Addict


Joined: Jan 26, 2008
Posts: 269
Location: Frankfurt am Main

PostPosted: Tue Nov 25, 2008 5:47 pm    Post subject: Re: 0.8.1 low performance Reply with quote

i dont know exactly what it does, it disables "pat", which has something to do with memory addressing.

and this fix also works with ati graphic cards. but i think pat was introduced with 2.6.26..

check with
Code::
dmesg |grep PAT

run glxgears before and after! mine jumped from 8900 to 13k when i added nopat to the boot options
Back to top
View user's profile
Falkland
Übergod
Übergod


Joined: Aug 01, 2008
Posts: 922
Location: Nowhere

PostPosted: Tue Nov 25, 2008 6:00 pm    Post subject: Re: 0.8.1 low performance Reply with quote

I've found also this

The PAT related problem still persists in kernel 2.6.27 series ... and yes aanti ... you're right ... PAT support was introduced in the 2.6.26 kernel series.

And apparently there's not any PAT support in my kernel :

Code::
dmesg | grep PAT
[   14.194921] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0x1100 irq 14
[   14.194978] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0x1108 irq 15
[   29.982142] parport0: PC-style at 0x378 (0x778), irq 7, dma 1 [PCSPP,TRISTATE,COMPAT,ECP,DMA]

So I'll have to search elsewhere ;)

BTW ... but your info is absolutely useful 'cause I have compiled a new 2.6.26 based kernel in the last days , but I didn't try it yet :grin:

EDIT: on the same thread I've added at the top of this post , I found this :

Quote::

Well I have two computers both with identical kernel setups and with PAT enabled. One computer doesn't exhibit the performance regression and the other computer does. The setup of the computer that doesn't exhibit the performance regression is:

ECS K8T890-A motherboard
eVGA 7600GT CO
1 Gig of DDR400
Hauppauge WinTV (BTTV)
Netgear FA311 (MacPhyter)
AMD 64 3800 X2

The setup of the computer that does exhibit the performance regression:
Asus A8N-SLI Deluxe Bios revision 1805
PNY 9600GT
4 Gig of DDR400
Hauppauge WinTV 150 (ivtv)
AMD 64 4200 X2

Both cpus are identical except for frequency. Same cpu family, and model. I am running Gentoo and both computers have nearly identical software setups. Both are running Xorg 7.4, and the 2.6.27 kernel provided by gentoo-sources-2.6.27-r1. IO-MMU has been enabled in this kernel.

The kernel config is attached. So it seems not every computer just like Xander is dealing with is experiencing this performance regression. The kernel config file attached should be able to boot every AMD64 based computer using ATA drives.
...
[ Attachments on the original site ]

The problem seems not to be strictly related to PAT ://///////
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum Index -> Tech & Support All times are GMT + 1 Hour
Go to page Previous  1, 2, 3, 4  Next
Page 2 of 4


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Welcome Anonymous


Membership:
Latest: kontol
New Today: 0
New Yesterday: 0
Overall: 355

People Online:
Members: 0
Visitors: 25
Total: 25
Who Is Where:
 Visitors:
01: The golden pot
02: The golden pot
03: The golden pot
04: The golden pot
05: The golden pot
06: My Account
07: The golden pot
08: Home
09: My Account
10: My Account
11: The golden pot
12: The golden pot
13: The golden pot
14: My Account
15: My Account
16: My Account
17: The golden pot
18: The golden pot
19: The golden pot
20: The golden pot
21: The golden pot
22: My Account
23: Home
24: My Account
25: The golden pot

Staff Online:

No staff members are online!

The Rainbow Networks website is hosted by JockeTF and Soder on furver.se.

The Rainbow Networks
Interactive software released under GNU GPL, Code Credits, Privacy Policy
Azul theme and related images designed by Jamin