02-29-2012, 06:03 AM
The commit log for rev 339 states:
- Server uses ~40% less CPU now
r339 - Server uses ~40% less CPU now
|
02-29-2012, 06:03 AM
The commit log for rev 339 states:
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 »
|