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

Yeti89

macrumors member
Original poster
Dec 27, 2011
83
5
I have been frustrated with this ever since I bought my 15" rMBP last year. I am a product design student and when I view my PDFs in Preview it is extremely choppy. I understand that they are vector graphics and so they are being rendered on the fly. But, Safari seems to handle them okay. Is there a reason Apple hasn't applied the same scrolling engine from Safari to Preview. I know I am probably dumbing this down but I feel like it would be as simple as a cut and past code job.

Any thoughts?
Also, is there anything an average consumer like me can do to get Apples attention and have them fix this?
 

benwiggy

macrumors 68020
Jun 15, 2012
2,381
193
Preview and Safari both use exactly the same PDF rendering engine, so if there are differences between the same file, then something else is going on.
This may simply be "a problem you are having on your computer" rather than "an issue that Apple needs to fix".

If the file is very large, then you may see some choppiness as a new bit is loaded in from the disk. However, that should be the same on both apps.

Have you tried different viewing styles in Preview? e.g. Continuous, Single Pages, with/without thumbnails, etc?

As a test, create a brand new user account and test the problem there. If the scrolling is improved, then you know that the cause is in your original account. Go back to that account and try emptying caches, using a utility like Onyx, or even delete the Preview preference file. (Access the Go menu in the Finder with the <alt> key held down, select Library, and navigate to the Preferences subfolder. Delete the com.apple.preview.plist file.
 

Yeti89

macrumors member
Original poster
Dec 27, 2011
83
5
Preview and Safari both use exactly the same PDF rendering engine, so if there are differences between the same file, then something else is going on.
This may simply be "a problem you are having on your computer" rather than "an issue that Apple needs to fix".

If the file is very large, then you may see some choppiness as a new bit is loaded in from the disk. However, that should be the same on both apps.

Have you tried different viewing styles in Preview? e.g. Continuous, Single Pages, with/without thumbnails, etc?

As a test, create a brand new user account and test the problem there. If the scrolling is improved, then you know that the cause is in your original account. Go back to that account and try emptying caches, using a utility like Onyx, or even delete the Preview preference file. (Access the Go menu in the Finder with the <alt> key held down, select Library, and navigate to the Preferences subfolder. Delete the com.apple.preview.plist file.



Thanks for your reply. I have done all this and more. What it has boiled down to is I can reproduce this on every rMBP model I have come across including in store models. I have done it multiple times with Apple Genesis but know one can provide an explanation.
 

benwiggy

macrumors 68020
Jun 15, 2012
2,381
193
Is it all vector PDFs, or some specific ones?

Do you have a link to a file that shows the issue?
 

Yeti89

macrumors member
Original poster
Dec 27, 2011
83
5
Is it all vector PDFs, or some specific ones?

Do you have a link to a file that shows the issue?


Its all vector PDFs. The more content the harder time Preview has. But like I said safari is fine.

Here is a link to a file.
https://www.dropbox.com/s/17voali6rs2pm36/Skinner.pdf
Download it and then open it in safari and preview and you'll see the difference. Don't just view it in the Dropbox link.
 

benwiggy

macrumors 68020
Jun 15, 2012
2,381
193
That file surely contains bitmaps; it's not completely vector....?

There is some slight judder in Preview.

However, I have much larger bitmap (and vector) PDFs that don't show any of the same judder in Preview or Safari.

I can't say why there's a difference between the two apps, or why that particular PDF causes it. Acrobat preflight suggests some issues with transparency, though.
 

Yeti89

macrumors member
Original poster
Dec 27, 2011
83
5
That file surely contains bitmaps; it's not completely vector....?

There is some slight judder in Preview.

However, I have much larger bitmap (and vector) PDFs that don't show any of the same judder in Preview or Safari.

I can't say why there's a difference between the two apps, or why that particular PDF causes it. Acrobat preflight suggests some issues with transparency, though.


I don't know to much about this stuff but you are right it isn't an all vector file. What I meant is that with all my vector/bitmap PDFs have the issue. Also, the more complicated the file the bigger the stutter.

I notice less of a jitter on my new iMac but my guess is because it is pushing less pixels. Also, while scrolling my preview CPU usage jumps to around 95% but when I scroll in Safari the cpu usage is around 15-20%.
 

Rossatron

macrumors 6502a
replying, because i managed to solve this (with a web search):

first i went to applications' folder, where i deleted adobe pdf viewer.
then i went to library -> internet plugins -> deleted the 2 adobe pdf plugins that were there -> restart safari.

now everything is smooth :)
 

Yeti89

macrumors member
Original poster
Dec 27, 2011
83
5
replying, because i managed to solve this (with a web search):

first i went to applications' folder, where i deleted adobe pdf viewer.
then i went to library -> internet plugins -> deleted the 2 adobe pdf plugins that were there -> restart safari.

now everything is smooth :)

So this fixed choppy scrolling in preview? My Safari is already working well
 

sshhoott

macrumors 6502
Feb 6, 2010
304
0
I don't know to much about this stuff but you are right it isn't an all vector file. What I meant is that with all my vector/bitmap PDFs have the issue. Also, the more complicated the file the bigger the stutter.

I notice less of a jitter on my new iMac but my guess is because it is pushing less pixels. Also, while scrolling my preview CPU usage jumps to around 95% but when I scroll in Safari the cpu usage is around 15-20%.

I was wondering the answer to this question when Mountain Lion came out as well. I have used almost all the Macs in Apple Store and they demonstrate smoother scrolling in Safari as compared to Preview, no matter what you're viewing.

As you mentioned, Preview uses more CPU but Safari doesn't. I think Safari is using a GPU Hardware accelerated engine for scrolling. It could also be that the Webkit2 engine that Safari uses is allowing smoother scrolling.

Apple's website: http://www.apple.com/ca/osx/whats-new/features.html#safari
Highlights smooth scrolling as one of the main features of the Safari browser:

"Smooth scrolling
Thanks to hardware acceleration, web pages scroll smoothly in the browser window even when your Mac is loading new web page content."​

Also have you tried forcefully using only the Dedicated GPU instead of the integrated one? Does it make a difference?

I think not even OS X 10.8.4 update will address this issue, but it really is a enhancement feature, rather than a bug. OS X 10.9 will probably include smooth scrolling throughout the OS, including Preview (if Apple truly cares about their customers' needs and wants). Think about it: if iPhone and iPad can have smooth scrolling throughout iOS, why can't OS X?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.