| Author | Message | 
        
			| Anchakor 
					Joined: Tue Dec 21, 2010 1:14 pm
 Posts: 2
   |   [linux] massive lagsHi, 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 | 
					
					   | 
	
	
		|  | 
	
			| Asmageddon 
					Joined: Sun Apr 12, 2009 10:31 am
 Posts: 71
   |   Re: [linux] massive lagsIt'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 | 
					
					   | 
	
	
		|  | 
	
			| Krur Maron XII 
					Joined: Sun Dec 19, 2010 7:59 pm
 Posts: 8
   |   Re: [linux] massive lagsUse 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 | 
					
					   | 
	
	
		|  | 
	
			| Anchakor 
					Joined: Tue Dec 21, 2010 1:14 pm
 Posts: 2
   |   Re: [linux] massive lagsThanks, under Wine the games runs nice! 
 
 | 
		
			| Wed Dec 22, 2010 5:25 pm | 
					
					   | 
	
	
		|  | 
	
			| Roast Veg Data Realms Elite 
					Joined: Tue May 25, 2010 8:27 pm
 Posts: 4522
 Location: Constant motion
   |   Re: [linux] massive lagsJust a point: Anchakor wrote: it seems the linux port only uses 1 processorIt 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 | 
					
					   | 
	
	
		|  | 
	
			| FoiL 
					Joined: Tue Oct 30, 2007 4:02 pm
 Posts: 1434
   |   Re: [linux] massive lagsWe 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 | 
					
					   | 
	
	
		|  | 
	
			| Asmageddon 
					Joined: Sun Apr 12, 2009 10:31 am
 Posts: 71
   |   Re: [linux] massive lagsWell, 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 | 
					
					   | 
	
	
		|  | 
	
			| FoiL 
					Joined: Tue Oct 30, 2007 4:02 pm
 Posts: 1434
   |   Re: [linux] massive lagsCould 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. 
 
 | 
		
			| Wed Dec 22, 2010 11:49 pm | 
					
					   | 
	
	
		|  | 
	
			| Asmageddon 
					Joined: Sun Apr 12, 2009 10:31 am
 Posts: 71
   |   Re: [linux] massive lagsSorry, 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 | 
					
					   | 
	
	
		|  | 
	
			| Roast Veg Data Realms Elite 
					Joined: Tue May 25, 2010 8:27 pm
 Posts: 4522
 Location: Constant motion
   |   Re: [linux] massive lagsIf 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 | 
					
					   | 
	
	
		|  | 
	
			| Asmageddon 
					Joined: Sun Apr 12, 2009 10:31 am
 Posts: 71
   |   Re: [linux] massive lagsAs 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 | 
					
					   | 
	
	
		|  | 
	
			| Asmageddon 
					Joined: Sun Apr 12, 2009 10:31 am
 Posts: 71
   |   Re: [linux] massive lagsI 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 | 
					
					   | 
	
	
		|  | 
	
			| FoiL 
					Joined: Tue Oct 30, 2007 4:02 pm
 Posts: 1434
   |   Re: [linux] massive lagsWell, 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 | 
					
					   | 
	
	
		|  | 
	
			| mike_ironfist 
					Joined: Wed Dec 29, 2010 9:37 pm
 Posts: 2
   |   Re: [linux] massive lagsFoiL 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 | 
					
					   | 
	
	
		|  | 
	
			| Asmageddon 
					Joined: Sun Apr 12, 2009 10:31 am
 Posts: 71
   |   Re: [linux] massive lagsWell, 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 | 
					
					   | 
	
	
		|  | 
	
	
		|  |