Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

adder7712

macrumors 68000
Original poster
Mar 9, 2009
1,926
9
I've seem to be getting lag in single player. Usually it's all smooth but the game began to lag on and off.

What seems to be causing this?
 
Could be many things

There are a lot of possible causes... are your Energy Saver settings under System Preferences set to maximize performance? Also, have you tried closing other programs before running CoD? You may also want to check how much system RAM is being used... there is a chance that some of your RAM is being swapped to the hard drive, which will drastically reduce performance. To check that, open Activity Monitor under Applications/Utilities, and click on "System Memory". Look at the Page ins and Page outs and write down what they are. Then play CoD for a while (until it starts lagging again) and then re-check to see what the page ins/out numbers are. If OS X is swapping your RAM to disk a lot during gameplay, those numbers will increase substantially. The only solution there (other than closing all other programs) is to buy and install more RAM.
 
There are a lot of possible causes... are your Energy Saver settings under System Preferences set to maximize performance? Also, have you tried closing other programs before running CoD? You may also want to check how much system RAM is being used... there is a chance that some of your RAM is being swapped to the hard drive, which will drastically reduce performance. To check that, open Activity Monitor under Applications/Utilities, and click on "System Memory". Look at the Page ins and Page outs and write down what they are. Then play CoD for a while (until it starts lagging again) and then re-check to see what the page ins/out numbers are. If OS X is swapping your RAM to disk a lot during gameplay, those numbers will increase substantially. The only solution there (other than closing all other programs) is to buy and install more RAM.
Maximize performance? I don't see it in the Energy Saving settings. I'm using a laptop.

Ok, I played CoD4 for about an hour. I quitted the app and here are the page in and page out, the only apps running at the time I added below are Firefox, System Preferences and of course, Activity Monitor.

Page in: 151.1MB
Page out: 88 KB
 
There are a lot of possible causes... are your Energy Saver settings under System Preferences set to maximize performance?[...]

MacBooks don't have dual GPUs like the MacBook Pro. FWIW, I find COD4 unplayable on the 9400M.
 
Maximize performance? I don't see it in the Energy Saving settings. I'm using a laptop.

Ok, I played CoD4 for about an hour. I quitted the app and here are the page in and page out, the only apps running at the time I added below are Firefox, System Preferences and of course, Activity Monitor.

Page in: 151.1MB
Page out: 88 KB

It's been a while since I last used OS X on a laptop... the last time I checked there was an option to run the CPU at full speed or at reduced speed to save power. I guess Apple disabled that feature in more recent versions of OS X.

Those page in/out numbers sound fine, so it seems like you have enough RAM. About the only other idea I can think of off the top of my head is to temporarily change the graphics options so that they aren't as detailed, and see if it helps.

BTW, CoD 4 runs flawlessly at 2560x1440 on the new iMac 27" Quad Core i7... The only way to slow it down is by setting all of the graphics settings to high/insane.
 
Here is another idea to try: open Activity Monitor and sort the process list by % CPU. Sort it decreasing so that processes using the highest CPU are shown on top. Then play CoD until you encounter the lag. As soon as that happens, hit command-tab to switch over to Activity Monitor. Take a look at the process list and see if there are other processes running that are also taking a lot of CPU. I find that Firefox is a CPU hog sometimes, depending on what web pages are open. It's worth trying to play CoD without Firefox open to see if that helps. Otherwise there could be a system process like Spotlight indexing that is slowing down your system.
 
Here is another idea to try: open Activity Monitor and sort the process list by % CPU. Sort it decreasing so that processes using the highest CPU are shown on top. Then play CoD until you encounter the lag. As soon as that happens, hit command-tab to switch over to Activity Monitor. Take a look at the process list and see if there are other processes running that are also taking a lot of CPU. I find that Firefox is a CPU hog sometimes, depending on what web pages are open. It's worth trying to play CoD without Firefox open to see if that helps. Otherwise there could be a system process like Spotlight indexing that is slowing down your system.
Did that, COD 4 is using the most. It started doing this after the EFI update and the lag happens after I die or anything that causes it to return to the previous game save (like shooting Victor in The Sins of the Father).

No problems like this on Windows so I don't think the GPU is causing this.
 
Did that, COD 4 is using the most. It started doing this after the EFI update and the lag happens after I die or anything that causes it to return to the previous game save (like shooting Victor in The Sins of the Father).

No problems like this on Windows so I don't think the GPU is causing this.

Question: Do you have both versions of the game, or are you running the windows COD4 via Crossover, basic Wine, or Cider? If so, it could explain the problems.
 
I'm using the Mac version. I've heard the port is pretty buggy but it works most of the time.
 
This usually happens in two levels: The Bog and War Pig, all SAS levels are ok.

Those levels hate me. :(

I started to think that the spill caused this (I spilled a bit of liquid on the palm rest). I'll play games on Windows XP to see if the same problem is present, if not I can rule out GPU problems and could blame the EFI and SuperDrive updates.

EDIT:

Played Halo 2 and Mass Effect on XP, no lag at all.

Perhaps I should reset the SMC?
 
This usually happens in two levels: The Bog and War Pig, all SAS levels are ok.

Those levels hate me. :(

I started to think that the spill caused this (I spilled a bit of liquid on the palm rest). I'll play games on Windows XP to see if the same problem is present, if not I can rule out GPU problems and could blame the EFI and SuperDrive updates.

EDIT:

Played Halo 2 and Mass Effect on XP, no lag at all.

Perhaps I should reset the SMC?

The spot where you spilled liquid is around where the hard drive is, so it is worth checking on that... Open up Disk Utility under Applications/Utilities and click on your drive (not "Macintosh HD" but the one above that lists the capacity). Then look at the bottom of the window where it says "S.M.A.R.T. Status" to see if it says "Verified" or "About to Fail". You can also perform a bad block check using TechTool Pro (which comes with the AppleCare discs if you purchased AppleCare), DiskWarrior, Drive Genius 2, Speedtools or similar. If you don't want to go through that, you could also try re-installing CoD to another folder and drag your profile over to it, and play from a different copy.

If nothing else seems to help, you can try the "Repair Disk" option in Disk Utility (on "Macintosh HD" this time) which will do a verify and repair in one step. Same goes for trying "Repair Disk Permissions". If everything is clear there, you can try resetting the SMC using Apple's support doc. The SMC reset fixes other types of problems (such as thermal management) that may or may not be affecting your situation.
 
This usually happens in two levels: The Bog and War Pig, all SAS levels are ok.

Those levels hate me. :(

I started to think that the spill caused this (I spilled a bit of liquid on the palm rest). I'll play games on Windows XP to see if the same problem is present, if not I can rule out GPU problems and could blame the EFI and SuperDrive updates.

EDIT:

Played Halo 2 and Mass Effect on XP, no lag at all.

Perhaps I should reset the SMC?

That's strange. I've heard of plenty of people who have no problems with the Mac port of COD4. Perhaps try reinstalling?
 
I decided to delete the COD 4 folder (except the players level) and re-install. Perhaps I should download the COD 4 for Windows Demo to see if I get the same results.

Resetting the SMC doesn't seem to help either. Other apps using the GPU works fine like Celestia.
 
I decided to delete the COD 4 folder (except the players level) and re-install. Perhaps I should download the COD 4 for Windows Demo to see if I get the same results.

Sounds like a plan - check back in and let us know if it helped.
 
The spot where you spilled liquid is around where the hard drive is, so it is worth checking on that... Open up Disk Utility under Applications/Utilities and click on your drive (not "Macintosh HD" but the one above that lists the capacity). Then look at the bottom of the window where it says "S.M.A.R.T. Status" to see if it says "Verified" or "About to Fail."
It says "Verified". I already checked the internals, no liquid present.

I don't think my Dad (he purchased this laptop) purchased AppleCare for mine. AppleCare for the MacBook/MacBook Pro 13 inch is expensive and I think my 1-year warranty ran out.
 
Sorry If I bumped this.

So I downloaded the COD 4 Demo in Windows. It works flawlessly so I guess my copy got messed up somehow.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.