02-29-2012, 06:03 AM 
		
	
	
		The commit log for rev 339 states:
          :D How did you pull that off?
:D How did you pull that off?
	
	
	
	
	
- Server uses ~40% less CPU now
 
 :D How did you pull that off?
:D How did you pull that off?
	| 
					r339 - Server uses ~40% less CPU now
				 | 
| 
		
		
		02-29-2012, 06:03 AM 
		
	 
		The commit log for rev 339 states: 
  :D How did you pull that off? 
		
		
		02-29-2012, 06:05 AM 
		
	 
		I guess it depends - it's the amount chopped off of the tick thread, which itself runs at about 5 % CPU on my machine, so that means now it will run at like 3 % CPU I guess   But maybe I'm wrong, I myself am wondering about the big change FakeTruth did   
		
		
		02-29-2012, 06:28 AM 
		
	 
		Apparently the copying of an empty std::map or std::deque 400 times a tick takes a lot of time, so I made a check to see if it contains anything before doing anything else. This brought my CPU from ~10% down to ~6% so, whatever   
		
		
		02-29-2012, 03:19 PM 
		
	 
		You might save even more if you use std::swap() instead of copying
	 | 
| 
					« Next Oldest | Next Newest »
				 |