Copy link to clipboard
Copied
I noticed that when I apply app.refresh ();
the functions slow down a lot
would there be a solution to this problem?
Copy link to clipboard
Copied
The only thing I can think of is to have Photoshop refresh only what the user needs to see and use. For example toggle all palettes off so Photoshop only needs to refresh the image being worked on. Pallets do not need to be refreshes for they are not being displayed. And only use app.refresh(); when the user need to see the current image and do something. Like an interactive transform or select an image file etc.
Copy link to clipboard
Copied
Why you need app.refresh() ?
Copy link to clipboard
Copied
I'm afraid that if you really need app.refresh(), you have to bear with the extra slowness that said refreshing implies.
Copy link to clipboard
Copied
I need app.refresh() for opening smart object content and "while" loop comparing active document with last opened or custom $.sleep() didn't worked for me. It was stucked in endless loop.
I noticed that there is Kevlar API with Idle event. How it works?
Photoshop Kevlar API Additions for Generator · adobe-photoshop/generator-core Wiki · GitHub
Copy link to clipboard
Copied
I have seen on the ps-scripts site a question similar to mine
and it was suggested to use windows.redraw ();
I tried this solution but it does not work.
Copy link to clipboard
Copied
redraw, as far as I remember, was an ActionManager equivalent of refresh, that can be used in older PS versions – same concept, though.
Copy link to clipboard
Copied
That's true, but isn't there one more GUI method for dialog redraw?
Copy link to clipboard
Copied
Thank you
so I have to continue to use app.refresh ();