Linux vs Windows Version

Anything about how you get those awesome core-dumps, or why you don't get them...
losinggeneration
Posts: 5
Joined: Fri Apr 16, 2004 5:43 am

Linux vs Windows Version

Post by losinggeneration »

I was wondering if there is any reason the Linux version performs poorer than the Windows version when it comes to Internet play (I haven't tried LAN yet.) I get a higher FPS in the Linux version but it seems to lag worse then the Windows version for me. I was wondering if this is abnormal (to me this seems odd.) Also, when I play Internet games with the Linux version the trails bend and move because of the lag. I was wondering if this too was abnormal. Any help here would be greatly appreciated.
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

This might have something, depending on distribution, todo with the firewall. For example the standard one, iptables, that I'd say most distributions run, actually processes each packet, so if you have a lower end computer maybe it is struggling with that. Could you maybe try stopping the iptables service and see if it gets better? (Personally on my comps I don't notice a difference between windows and linux versions, lag wise.)
Image
losinggeneration
Posts: 5
Joined: Fri Apr 16, 2004 5:43 am

Post by losinggeneration »

wow, that kinda surprised me that turning iptables off would work. I don't think I would have guessed that in a long time. Thanks for the help. (so quickly at that.)

/*****************************************
EDIT

Should I be running a firewall with Linux or does it matter that much?

END EDIT
*****************************************/
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

It's a good thing to be running, just in case. Simply turn it off when you want to play armagetron.
Image
User avatar
subby
Shutout Match Winner
Posts: 1199
Joined: Sun Dec 21, 2003 1:18 am
Location: A cave, Melbourne, Australia.

Post by subby »

couldn't you just tell iptables to ignore the armagetron port? would that help?

and yes running a firewall is important.

I've found that the linux version runs much better than the windows versinon on the same compute. Perhaps it (and SDL etc) is more optimised for my cpu? ie for a P4 rather than a 386?

I generally get at least 50% higher refresh rates (fps) in linux.

Grinding is sweet.

btw i'm not at home and am using a (Shared) 56k modem, so don't expect me on the grid !
User avatar
Marrow
MVP - Project Contributor
Posts: 1655
Joined: Mon Jan 19, 2004 9:05 am
Location: New York

Post by Marrow »

Grinding in the non-windows OSes is sweet indeed.
User avatar
iceman
Reverse Adjust Outside Corner Grinder
Posts: 2448
Joined: Fri Jan 09, 2004 9:54 am
Location: Yorkshire, England. Quote: Its the fumes, they make one want to play
Contact:

Post by iceman »

i could really do with a ms-dos version

anyone want to take this up ?
Image He who laughs last, probably has a back-up
Image
Image
sorry about the large animated gif
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

There is no way you can easily have iptables open up the port, because the port on your computer is incremental, and doesn't have a set range. So, I don't think it can be done, or at least I don't know how it can be done...
Image
User avatar
ndogg
On Lightcycle Grid
Posts: 13
Joined: Wed Mar 02, 2005 1:31 pm
Location: Oshkosh, WI
Contact:

Post by ndogg »

Tank Program wrote:There is no way you can easily have iptables open up the port, because the port on your computer is incremental, and doesn't have a set range. So, I don't think it can be done, or at least I don't know how it can be done...
Well, you could tell iptables to ignore Armagetron packets, though you would still have a performance hit since it needs to figure out if a packet is an Armagetron packet.

I don't know how to do this since I haven't played with iptables in a while (I'm pretty satisfied with the one that comes with my distro), but I'm pretty sure it's possible, and that information is probably somewhere out on the net.
User avatar
Z-Man
God & Project Admin
Posts: 11710
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

ndogg wrote:Well, you could tell iptables to ignore Armagetron packets, though you would still have a performance hit since it needs to figure out if a packet is an Armagetron packet.

I don't know how to do this since I haven't played with iptables in a while (I'm pretty satisfied with the one that comes with my distro), but I'm pretty sure it's possible, and that information is probably somewhere out on the net.
I don't quite understand how the simple, basic filtering of iptables can slow things down noticeably, but if that's what you observe, it must be so. I would rather suspect that the advanced filtering options like masquerading and statefull filtering ( like blocking connection spams ) are the performance hogs.
If you want to block network traffic generally and only allow Armagetron packets ( and whatever you like ), you can do so by filtering outgoing packets by their destination port and incoming packets by their source port, like

Code: Select all

IPTABLES=/sbin/iptables
GLOBAL_NETWORK=0.0.0.0/0
ATRON_PORTS=4530:4550

# build incoming chain
$IPTABLES -N allow-tron-traffic-in
$IPTABLES -F allow-tron-traffic-in
$IPTABLES -A allow-tron-traffic-in -p udp -s $GLOBAL_NETWORK -d $GLOBAL_NETWORK --sport $ATRON_PORTS   -j ACCEPT

# build outgoing chain
$IPTABLES -N allow-tron-traffic-out
$IPTABLES -F allow-tron-traffic-out
$IPTABLES -A allow-tron-traffic-out -p udp -d $GLOBAL_NETWORK -s $GLOBAL_NETWORK --dport $ATRON_PORTS  -j ACCEPT

# apply chains
# TODO: block other traffic
$IPTABLES -A OUTPUT -j allow-tron-traffic-out
$IPTABLES -A INPUT -j allow-tron-traffic-in
The filtering rules for $GLOBAL_NETWORK can be omitted, I guess. Or they can be refined to your current address, but the application to the INPUT/OUTPUT chain should already do that. I'm no iptables expert, either. And I sure hope the server sends packets with the source port set to the server port.
Hellfire
Posts: 2
Joined: Sun Feb 27, 2005 8:33 am

Windows is better

Post by Hellfire »

Windows is built to be faster on gaming than Linux im just gonna leave it at that because if i wanted to go into it this post could be 20 pages and im to bored to do that so trust me Windows is good and Linux is bad

:twisted: -kill the penguin- :twisted:

-Hellfire aka Windflame Leader

www.angelfire.com/de3/windflame
Join today
dont speak if you can't explain the silence
ishAdmin
Match Winner
Posts: 625
Joined: Sun Jul 04, 2004 12:11 am
Contact:

Post by ishAdmin »

My own observations have been that I get double the fps on linux. But I will also get choppy animation on linux sometimes, even with reasonable fps. This happens mostly when I glance right, left, or back. When I'm looking straight ahead again, it smooths out. This is on an older computer. 500 mhz celeron Aptiva, no video card (on board). I guess I don't expect much from it, but the windows doesn't get choppy unless the fps actually drops. It's like the linux isn't keeping up with the fps it claims to have on it's video display. The windows is 98, and the linux is mandrake 9.1.
Image
User avatar
Z-Man
God & Project Admin
Posts: 11710
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

It may be choppy timer measurements or irregular frame rendering times. If your monitor is running at 60 Hz, then 30 fps will feel smoother than 50. with 50 fps, you'll get one "dropped" ten times a second and your eye detects a 10hz stutter. It's quite good at that :(
ishAdmin
Match Winner
Posts: 625
Joined: Sun Jul 04, 2004 12:11 am
Contact:

Post by ishAdmin »

This is more than flicker, or dropped frames. When I say choppy, I mean the image is really updating at between 2 and 5 fps, despite it's reporting 30+ fps. As the fps drops, the choppiness follows. Meaning if I dropped to less than 20 fps, the glance back updates would slow to as low as 1 fps. I've learned to avoid glancing back when my fps drops below 20, or the lost frames become too great, and I'll easily be killed.

I'll look at this more and come up with better observations. But I truly expect that if I had a video card, I wouldn't have this problem, since no one else has ever mentioned it. It could even be because I am holding the glance key down, and the keyboard polling has something to do with not updating video properly. Who knows!
Image
User avatar
n54
MVP
Posts: 1587
Joined: Sun Dec 21, 2003 12:40 pm

Post by n54 »

if i have about 30fps or below if chops on my windows box, it's probably common just ignored :)

(btw i have an athlon xp and a geforce4something & 1MiB of ram)
Post Reply