20 Replies Latest reply: Sep 27, 2012 6:11 AM by conroy RSS

    CS6 Crop Tool performance lag

    charles badland Community Member

      I’ve been using the new Crop Tool on some moderately large files (2GB range) that contain layers, SOs and big data.  I use the crop command without resampling (just changing the aspect ratio) and without deleting cropped pixels.

       

      My question is why, after the committing the crop, does the crop take so long to implement?  No interpolation is taking place, no pixels are being altered… all that is happening is I’m changing the visible canvas area… yet PS churns away like it’s performing some complex task.  I see this on both my work and home machines. I wonder why that is?

        • 1. Re: CS6 Crop Tool performance lag
          Sudarshan Thiagarajan CommunityMVP

          In your crop tool, have you enabled 'Delete Cropped Pixels'? It is enabled by default. If it is, can you try deselecting it? You can see this option on the Menubar once you select Crop tool.

          • 2. Re: CS6 Crop Tool performance lag
            charles badland Community Member

            I use the crop command without resampling (just changing the aspect ratio) and without deleting cropped pixels.

            • 3. Re: CS6 Crop Tool performance lag
              Sudarshan Thiagarajan CommunityMVP

              Well, can you then try enabling 'Delete Cropped Pixels' and see if there's a difference in performance?

              • 4. Re: CS6 Crop Tool performance lag
                charles badland Community Member

                I don't want to delete cropped pixels. My question was more academic... why should there be such a lag (over a minute) if nothing is really changing .. except the canvas view?

                 

                edit-

                I just did a test on a 1.9GB file, cropping from 13 X 14 to 13 X 13. No resampling. 1 minute 18 seconds.  Seems like a long time for what is actually happening.

                (Mac Pro Tower, 2.66 Quad Core Xeon, 8 GB RAM)

                • 5. Re: CS6 Crop Tool performance lag
                  Sudarshan Thiagarajan CommunityMVP

                  Again, this depends on various factors including but not limited to RAM available/ allocated to PS, Scratch Disks & what data is PS scrubbing when it's committing your Crop action. I cannot replicate your scenario here unless I have the exact same file that you're working on.

                   

                  Let's see if a SME pops in to share their views here.

                  • 6. Re: CS6 Crop Tool performance lag
                    conroy Community Member

                    I think the heavy calculations involve the Smart Objects. As a test, rasterize all the SOs but don't flatten the document. Now the crop should be almost instantaneous.

                     

                    SOs are always retained, even when entirely cropped out and when "Delete Cropped Pixels" is enabled. And they are entirely visible when dragged back into the new canvas area. I wonder why their presence drastically adds to the cropping calculations when all that happens is that they become partially or completely hidden?

                    • 7. Re: CS6 Crop Tool performance lag
                      Noel Carboni Community Member

                      Adobe has had multiple problems having to do with checking the boundaries of things (reference the flap over whether snap to layer was selected).  Perhaps this operation is triggering some of that same code.

                       

                      I agree, it seems wrong, and in fact actually deleting the cropped pixels is sometimes faster.  I've noticed the delay myself since the CS6 beta and never thought to question it.  Glad you did, Charles!

                       

                      -Noel

                      • 8. Re: CS6 Crop Tool performance lag
                        charles badland Community Member

                        As a test, rasterize all the SOs but don't flatten the document. Now the crop should be almost instantaneous.

                         

                        conroy,

                        Well, that sounded good.

                        I tried rasterizing my two SOs - which brought closed file size down to 1.6GB.

                        Relaunched PS with fresh prefs. Reopen file and Crop again (no resampling or deleting pixels).

                        Still over a minute to implement.

                        Odd. Like you say, I would think a crop without resampling should be close to instantaneous.

                        • 9. Re: CS6 Crop Tool performance lag
                          charles badland Community Member

                          I agree, it seems wrong, and in fact actually deleting the cropped pixels is sometimes faster.  I've noticed the delay myself since the CS6 beta and never thought to question it.  Glad you did, Charles!

                          Thanks Noel.

                          • 10. Re: CS6 Crop Tool performance lag
                            conroy Community Member

                            I found that a crop which was taking about 30 seconds with 10 Smart Objects in the document was reduced to about a half-second if the SOs are rasterized first.

                             

                            Relaunched and retested. Same result. The SOs are making the crop about 60 times slower.

                            • 11. Re: CS6 Crop Tool performance lag
                              charles badland Community Member

                              The SOs are making the crop about 60 times slower.

                              Hmm. Rastering my SOs only knocked off about 12 seconds from a 1min 18sec crop time.

                              But my files are pretty fair sized: 4000px X 4300px Image.. 8200px X 8300px if you include the data outside the canvas area. And about 12 layers. And 16 bit.

                              • 12. Re: CS6 Crop Tool performance lag
                                conroy Community Member

                                Yep, I wouldn't expect a constant factor of 60 for every document. The doc I have here is 1800 x 3000 pixels, 16-bit and contains 10 SOs and nothing else.

                                • 13. Re: CS6 Crop Tool performance lag
                                  conroy Community Member

                                  Upsized the docs to 3600 x 6000 pixels (4 times the pixel count). 43 secs to crop the SOs, 2 secs to crop rasters. Repeating the test gives consistent results.

                                  • 14. Re: CS6 Crop Tool performance lag
                                    Noel Carboni Community Member

                                    My test results with Photoshop CS6:

                                     

                                    10000 x 10000 pixel 8 bits/channel collage file with 13 raw file smart object layers, 2 PSD file smart object layers, and a white background.

                                     

                                    • Crop to 9100 x 10000 pixels:  77 seconds

                                     

                                    Undid the crop, then rasterized all the layers, which took 2 seconds.

                                     

                                    • Crop to 9100 x 10000 pixels:  4.6 seconds

                                     

                                     

                                    With Photoshop CS5:

                                     

                                    Same file with Smart Objects

                                     

                                    • Crop to 9100 x 10000 pixels: 72 seconds

                                     

                                    Rasterized (also took about 2 seconds to do)

                                     

                                    • Crop to 9100 x 10000 pixels: 13.2 seconds

                                     

                                     

                                    I think it's pretty clear there's a serious slowdown problem with the Crop Tool, but it's not a new problem.  While it may have gotten a little slower to work on a document with multiple layers of Smart Objects in Photoshop CS6, operations with rasterized layers got much faster.

                                     

                                    -Noel

                                    • 15. Re: CS6 Crop Tool performance lag
                                      charles badland Community Member

                                      Interesting test Noel. I did not mean to imply it was particular to CS6.

                                       

                                      It was over the weekend, rushing to finish up some large pieces, I began to wonder why I was seeing such a lag when the Crop was basically just adjusting the canvas area view.

                                      • 16. Re: CS6 Crop Tool performance lag
                                        conroy Community Member

                                        I can confirm the CS6 big improvement over CS5.1 when cropping rasters but equally dismal performance from both versions when cropping SOs.

                                         

                                        Concentrating on CS6 again and my particular example, I think it significant that when cropping the rasters there is no disk activity, but when cropping SOs there is a constant significant writing to disk for the duration of the operation yet never any reading from disk. That was repeatedly consistent.

                                        • 17. Re: CS6 Crop Tool performance lag
                                          Chris Cox Adobe Employee

                                          Cropping a Smart Object usually means that the Smart Object is going to have to be re-rasterized for the new document (and re-color converted, re-transformed, etc.).  Yes, re-rasterizing the Smart Object will create a lot of data that might write to the scratch disk.

                                           

                                          None of that that should change between versions since the introduction of Smart Objects.

                                          • 18. Re: CS6 Crop Tool performance lag
                                            Noel Carboni Community Member

                                            Chris Cox wrote:

                                             


                                            None of that that should change between versions

                                             

                                            So you're saying you made Ps CS6 work better by accident? 

                                             

                                            -Noel

                                            • 19. Re: CS6 Crop Tool performance lag
                                              conroy Community Member

                                              Thanks, Chris. Yes, as I said above, I get consistent behaviour and performance when cropping SOs with CS5.1 and CS6. The difference between versions is the most welcome dramatic improvement in cropping speed of raster layers.

                                              • 20. Re: CS6 Crop Tool performance lag
                                                conroy Community Member

                                                Chris Cox wrote:

                                                 

                                                Cropping a Smart Object usually means that the Smart Object is going to have to be re-rasterized for the new document (and re-color converted, re-transformed, etc.).  Yes, re-rasterizing the Smart Object will create a lot of data that might write to the scratch disk.

                                                 

                                                 

                                                When the document is simply being cropped without resampling, as in the case which prompted this thread, isn't all that expensive re-rasterizing of SO unnecessary?