View unanswered posts | View active topics It is currently Fri Dec 27, 2024 10:42 pm



Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
 [linux] massive lags 
Author Message

Joined: Tue Dec 21, 2010 1:14 pm
Posts: 2
Reply with quote
Post [linux] massive lags
Hi, I got the game in HIB2 as bunch of others, but unlike others, I like the game a lot, even in it's current beta state.
Only problem is that in large maps in skrimish defence mode (possibly others), game starts to lag unbelievably.
The game cycles between 0.5-1s of action and 3-7s of freeze (looping sound etc).
I am not sure if it is related to the number of AIs in the scene, because it starts only when many enemies spawn and on large maps.

I have looked at one thread and changed my DeltaTime, but that didn't fix it, just made the game a bit faster when unfrozen. Toggling Ctrl+O didn't have any effect on this either.

I wonder if this is because it seems the linux port only uses 1 processor, so the AI and the engine have to share it causes te problem.

Anyway is there a way to reduce the maximum number of enemies which are spawned to the map?

This problem doesn't occur at smaller maps as much and the zombie cave and tutorial missions.


Tue Dec 21, 2010 1:29 pm
Profile

Joined: Sun Apr 12, 2009 10:31 am
Posts: 71
Reply with quote
Post Re: [linux] massive lags
It's natural that CC will lag on large maps.
Also, Windows version ran through Wine works much better than the apparently rushed Linux port....


Tue Dec 21, 2010 3:36 pm
Profile

Joined: Sun Dec 19, 2010 7:59 pm
Posts: 8
Reply with quote
Post Re: [linux] massive lags
Use the windows version under WINE. Apparently some applications are much slower in Lisux version. I heard the same thing is happening with Firefox - it works much faster in WINE than ran natively.


Tue Dec 21, 2010 6:18 pm
Profile

Joined: Tue Dec 21, 2010 1:14 pm
Posts: 2
Reply with quote
Post Re: [linux] massive lags
Thanks, under Wine the games runs nice!


Wed Dec 22, 2010 5:25 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: [linux] massive lags
Just a point:
Anchakor wrote:
it seems the linux port only uses 1 processor

It does. I know this for certain as so do all the other versions of CC you will ever find, including the one you are using on WINE.


Wed Dec 22, 2010 5:36 pm
Profile
User avatar

Joined: Tue Oct 30, 2007 4:02 pm
Posts: 1434
Reply with quote
Post Re: [linux] massive lags
We really need a comparison chart between:

CC running on native windows;
CC running on native linux;
And finally CC running through wine.

I'm actually very interest in the difference of performance between versions.


Wed Dec 22, 2010 6:04 pm
Profile

Joined: Sun Apr 12, 2009 10:31 am
Posts: 71
Reply with quote
Post Re: [linux] massive lags
Well, Linux handles CPU and memory management very good, which is the reason why it is being used on supercomputers and servers.
From my experience with b21(long ago :p), Windows version ran via Wine appears to run slightly faster, and the difference is even more significant after changing Allegro config file.
As for Linux vs WINE it's something like 0.31 vs 0.59 (real to sim ratio) in tutorial scene. At least for me.


Wed Dec 22, 2010 9:03 pm
Profile
User avatar

Joined: Tue Oct 30, 2007 4:02 pm
Posts: 1434
Reply with quote
Post Re: [linux] massive lags
Could I ask you for a "favor" and have you run this thing? It logs CC's performance and I could slap together a neat chart.


Attachments:
Tester.rte.zip [7.04 KiB]
Downloaded 232 times
Wed Dec 22, 2010 11:49 pm
Profile

Joined: Sun Apr 12, 2009 10:31 am
Posts: 71
Reply with quote
Post Re: [linux] massive lags
Sorry, but I do not own Windows, and thus on't have it installed, but sure, just not today :p


Thu Dec 23, 2010 12:00 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: [linux] massive lags
If you wanted, I could test it on WinXP SP2.

Only if you wanted to compare Windows variations, though.


Thu Dec 23, 2010 12:04 am
Profile

Joined: Sun Apr 12, 2009 10:31 am
Posts: 71
Reply with quote
Post Re: [linux] massive lags
As opposed to testing it on Windows for me, you could easily download, burn and run a Linux LiveCD.
Preferably Ubuntu.
Just do "sudo apt-get install wine" in terminal and you should be able to run Windows version via it.
If the Linux one doesn't work you might have to do "sudo apt-get list-of-packages-needed". Check the readme.
Ok, commencing testing...


Thu Dec 23, 2010 12:06 pm
Profile

Joined: Sun Apr 12, 2009 10:31 am
Posts: 71
Reply with quote
Post Re: [linux] massive lags
I had to strip filenames of "Tester.rte\" in order to get it to run.
I ran both version under identical conditions and Linux one ran much slower, though, the results are identical and obviously incorrect:
Code:
CC PERFORMANCE TESTER V0.2
COPYRIGHT 2010 GRIFFITH INDUSTRIES
OS:
PROCESSOR:
RAM:
RESX: 800
RESY: 600
PPM: 20
POSTPROCESSING: true
MOD COUNT: 12
TIMESCALE: 1
DELTATIME: 0.016666699200869
TEST RESULT 1 : 17.47
TEST RESULT 2 : 37.61
TEST RESULT 3 : 103.1


That is, assuming it actually wrote anything into the files...


Thu Dec 23, 2010 12:31 pm
Profile
User avatar

Joined: Tue Oct 30, 2007 4:02 pm
Posts: 1434
Reply with quote
Post Re: [linux] massive lags
Well, thats mind boggling to say the least. I guess we need a better way to test performance. I've thought of using a live cd, but I was unsure if I'd be able to install the necessary packages.

Onwards with downloading ubuntu.


Thu Dec 23, 2010 2:49 pm
Profile

Joined: Wed Dec 29, 2010 9:37 pm
Posts: 2
Reply with quote
Post Re: [linux] massive lags
FoiL wrote:
Well, thats mind boggling to say the least. I guess we need a better way to test performance. I've thought of using a live cd, but I was unsure if I'd be able to install the necessary packages.

Onwards with downloading ubuntu.

Hey, just a bit of advice as a loyal Ubuntu user: using a Live CD is a very bad idea for testing performance, Live CD's are so much slower than systems installed on a hard drive. Instead, I'd recommend using a live USB or or installing Ubuntu within Windows. Both should be just as safe and non-destructive as using a live CD.

EDIT: I'm not sure if I read your post correctly, so I hope I didn't misinterpret it, but if you meant using a Live CD to test performance, I'd recommend against it, 'cause it doesn't really work all that well.


Wed Dec 29, 2010 9:50 pm
Profile

Joined: Sun Apr 12, 2009 10:31 am
Posts: 71
Reply with quote
Post Re: [linux] massive lags
Well, excluding the fact that all stuff is loaded from CD instead of hard drive and the fact that it has no drivers, it should work perfectly.
Installing stuff should be possible too, but you're gonna need some RAM since it's going there, not onto HDD when using a LiveCD.


Wed Dec 29, 2010 10:35 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 16 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: Google [Bot]


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.024s | 16 Queries | GZIP : Off ]