The scripts are in Python, which is not a compiled language.csh2000 wrote:Also, if we could pre-compile the scripts prior to running I believe we would save additional time.
Performance: How can PSP improve?
Moderator: Kathy_9
-
Rick_R
- Posts: 194
- Joined: Sat Sep 24, 2011 5:20 am
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: ASUSTeK Computer INC F2A85-V Pro
- processor: AMD A6-6400K APU
- ram: 8GB
- Video Card: PowerColor AMD Radeon R7 240 2GB DDR3
- sound_card: On-board Realtek and AMD High Definition Audio
- Hard_Drive_Capacity: 16TB+375GB
- Monitor/Display Make & Model: SEIKI SE39UY04 39in 4K UHD TV
- Corel programs: PaintShop Pro 12-2022 Ultimate
- Location: Dallas, Texas USA
Re: Performance: How can PSP improve?
-
LeviFiction
- Advisor
- Posts: 6831
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Re: Performance: How can PSP improve?
Yes and no. Technically Python converts all scripts to byte-code before running them. Python includes an interpreter so you can test code one line at a time. Now this will mean a slightly slower startup of uncompiled scripts as they are being compiled but once the script is loaded and compiled it runs at speed every time. So csh2000 is correct that a tiny portion of time would be saved if the scripts could be pre-compiled. But most scripts aren't exactly huge, so the compile time is minimal. Python libraries that include a .pyc file will load a little faster because of this precompiling. Which is what the "c" stands for.
Though I also defer back to what csh2000 wrote, again, that a majority of the speed issues are waiting for the UI to update.
Actually, now that I think about it. In some ways python is a little too fast. Sometimes the UI doesn't update or the program state doesn't up date in time for the next command to be run and we end up with a "program state" error. A perfectly legal command suddenly can't execute. We've found that by changing the process, or even just pausing the script for 1 second is usually enough for the UI to catch up. Odd as that sounds.
EDIT:
Just tried to compile a script to see if it would work. Failed while parsing the script. Apparently PSP does its own parsing. *shrug*
Though I also defer back to what csh2000 wrote, again, that a majority of the speed issues are waiting for the UI to update.
Actually, now that I think about it. In some ways python is a little too fast. Sometimes the UI doesn't update or the program state doesn't up date in time for the next command to be run and we end up with a "program state" error. A perfectly legal command suddenly can't execute. We've found that by changing the process, or even just pausing the script for 1 second is usually enough for the UI to catch up. Odd as that sounds.
EDIT:
Just tried to compile a script to see if it would work. Failed while parsing the script. Apparently PSP does its own parsing. *shrug*
https://levifiction.wordpress.com/
-
csh2000
- Posts: 59
- Joined: Mon Mar 31, 2014 3:54 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: Intel Core i7-6500U CPU 2.50GHz
- ram: 12GB
- Hard_Drive_Capacity: 1TB
- Corel programs: PSP X9, Aftershot Pro 3, VideoStudio X9
Re: Performance: How can PSP improve?
Thanks for trying, was just getting ready to try myself.LeviFiction wrote: EDIT:
Just tried to compile a script to see if it would work. Failed while parsing the script. Apparently PSP does its own parsing. *shrug*
-
MarkZ
- Posts: 1080
- Joined: Sat Feb 05, 2011 10:41 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Intel DQ67SW desktop
- processor: Intel Core i7 i7-2600 3.40 GHz
- ram: 8 GB
- Hard_Drive_Capacity: 500 GB
- Monitor/Display Make & Model: LG Flatron E2241
- Corel programs: PSP 2018 X9 X8 X7 X6 ASP3 ASP
- Location: Toronto
Re: Performance: How can PSP improve?
Nev:Nev wrote:I'm using performance in the context of actual and perceived speed, efficiency, and responsiveness of the app. Any observations or suggestions you can share would be great.
There are many instances in PSP where common operations require far more clicks or adjustments than necessary. We often end up doing repetitive tasks when working on a batch of images and all these unnecessary clicks add up, waste time and cause frustrations. Suggestions for reducing these repetitions:
- make the zoom level in the dialog box used in most adjustment tools the "last used". I find that within a session I'm working on the same size of images and the zoom level is consistent between tools - and not the default which is 100% in some instances and full size display in others.
- when a new brush is selected make it the same size as the last used. If you are going through a lot of brushes to see which works it can drive you crazy resetting the size from the default each time.
- keep the pan window display within the tool dialog box within the tool dialog box. The way it is now, if you are at the edge of your display most of the pan window disappears, the tool dialog box has to be repositioned and the pan window accessed again. In one session when I had the tool dialog box at the edge for a good reason all the repositioning was awfully frustrating. I think all that is needed is a new X value for the position of the pan window. The development team tried a response to this request in X8, screwed it up, reset to the old way in SP1 and walked away. Let's try again.
- With today's higher resolution monitors some of the lines and the nodes are very hard to see. I know from comments I've seen that there are many others who spend a lot of time searching for these details and then trying to land precisely on the line or node - some of us are getting older, which is good because the alternative sucks. Perhaps you could do an ergonomic analysis of PSP and see where improvements could be made.
Mark
-
Rick_R
- Posts: 194
- Joined: Sat Sep 24, 2011 5:20 am
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: ASUSTeK Computer INC F2A85-V Pro
- processor: AMD A6-6400K APU
- ram: 8GB
- Video Card: PowerColor AMD Radeon R7 240 2GB DDR3
- sound_card: On-board Realtek and AMD High Definition Audio
- Hard_Drive_Capacity: 16TB+375GB
- Monitor/Display Make & Model: SEIKI SE39UY04 39in 4K UHD TV
- Corel programs: PaintShop Pro 12-2022 Ultimate
- Location: Dallas, Texas USA
Re: Performance: How can PSP improve?
This is sort of half-way between a performance tweak and a wishlist item.
I frequently have to change screenshot images to higher resolution, e.g., looking at an aerial view of an accident location in Google or Bing or taking a Street View or Streetside image of a house, and in such cases convert them to 300 dpi.
Depending on the user's specific hardware, normally the images get saved at either 72 dpi or 96 dpi. And generally the conversion is to 300 dpi for printing. That might be either changing the print size only by changing the dpi or increasing the number of pixels by multiplying by a specific amount. It would be nice to have two options the user can set in Preferences and then have buttons for [ ] Shrink 72 dpi to 300 [ ] Resample 72 dpi to 300.
I frequently have to change screenshot images to higher resolution, e.g., looking at an aerial view of an accident location in Google or Bing or taking a Street View or Streetside image of a house, and in such cases convert them to 300 dpi.
Depending on the user's specific hardware, normally the images get saved at either 72 dpi or 96 dpi. And generally the conversion is to 300 dpi for printing. That might be either changing the print size only by changing the dpi or increasing the number of pixels by multiplying by a specific amount. It would be nice to have two options the user can set in Preferences and then have buttons for [ ] Shrink 72 dpi to 300 [ ] Resample 72 dpi to 300.
-
LeviFiction
- Advisor
- Posts: 6831
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Re: Performance: How can PSP improve?
Wouldn't those be better to do in scripts?
https://levifiction.wordpress.com/
-
JoeB
- Posts: 2778
- Joined: Fri Mar 28, 2008 10:04 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: LENOVO 4524PE4 ThinkCentre M91p
- processor: 3.10 gigahertz Intel Quad Core i5-2400
- ram: 8 GB
- Hard_Drive_Capacity: 4.6 TB
- Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
- Location: Canada
Re: Performance: How can PSP improve?
PSP doesn't have a dpi setting.Rick_R wrote:This is sort of half-way between a performance tweak and a wishlist item.
I frequently have to change screenshot images to higher resolution, e.g., looking at an aerial view of an accident location in Google or Bing or taking a Street View or Streetside image of a house, and in such cases convert them to 300 dpi.
Regards,
JoeB
Using PSP 2019 64bit
JoeB
Using PSP 2019 64bit
-
Rick_R
- Posts: 194
- Joined: Sat Sep 24, 2011 5:20 am
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: ASUSTeK Computer INC F2A85-V Pro
- processor: AMD A6-6400K APU
- ram: 8GB
- Video Card: PowerColor AMD Radeon R7 240 2GB DDR3
- sound_card: On-board Realtek and AMD High Definition Audio
- Hard_Drive_Capacity: 16TB+375GB
- Monitor/Display Make & Model: SEIKI SE39UY04 39in 4K UHD TV
- Corel programs: PaintShop Pro 12-2022 Ultimate
- Location: Dallas, Texas USA
Re: Performance: How can PSP improve?
When I save screen images they usually show up as "72 dpi", depending on the particular program I'm using to get the info. Often (e.g., Ancestry.com document images) they were scanned at 300 dpi but when the image displays on screen it shows as 72 dpi with huge dimensions.
I do have scripts, but that's because I mainly use it for Ancestry documents and those were scanned at a variety of dpi settings, so I have a number of scripts, plus those require clicking and cursoring through quite numerous steps to get to the one I want.
I think most people would really want just "Take this image, which says it is 72 [or 96] dpi and resize it [not resample] to 300 dpi so I can print it." In other cases they would need to resample it so the print dimensions don't change.
It might be possible to even do that as a one-button solution, where the code automatically determines whether to just change the print size [no resampling] or to "magnify" by resampling. For instance, if an image 2550 W x 3300 H shows as 72 dpi, chances are the user doesn't intend to have it print 35.4 inches wide by 45.8 inches high. So that probably was scanned at 300 dpi and the print dimensions probably should be 8.5" x 11".
The user would have to set in Preferences: "Screen" dpi (72, 96, or custom), "Print" dpi (300, 600, custom), and possibly "Maximum print width" and "Maximum print height". So if the program sees that resampling--e.g., 72 to 300 dpi--will produce an image [much] larger than [Max print size] 8.5 x 11, that means "resize using same number of pixels".
Conversely, converting from 72 dpi to 300 basically produces a 1/16th size image. If the 72 dpi original is anywhere near the "Maximum print size", the chances are the user wants resampling.
In Preferences it probably would also be a good idea to give the option: Change current image, Resize to new image, Backup current image then resize.
I do have scripts, but that's because I mainly use it for Ancestry documents and those were scanned at a variety of dpi settings, so I have a number of scripts, plus those require clicking and cursoring through quite numerous steps to get to the one I want.
I think most people would really want just "Take this image, which says it is 72 [or 96] dpi and resize it [not resample] to 300 dpi so I can print it." In other cases they would need to resample it so the print dimensions don't change.
It might be possible to even do that as a one-button solution, where the code automatically determines whether to just change the print size [no resampling] or to "magnify" by resampling. For instance, if an image 2550 W x 3300 H shows as 72 dpi, chances are the user doesn't intend to have it print 35.4 inches wide by 45.8 inches high. So that probably was scanned at 300 dpi and the print dimensions probably should be 8.5" x 11".
The user would have to set in Preferences: "Screen" dpi (72, 96, or custom), "Print" dpi (300, 600, custom), and possibly "Maximum print width" and "Maximum print height". So if the program sees that resampling--e.g., 72 to 300 dpi--will produce an image [much] larger than [Max print size] 8.5 x 11, that means "resize using same number of pixels".
Conversely, converting from 72 dpi to 300 basically produces a 1/16th size image. If the 72 dpi original is anywhere near the "Maximum print size", the chances are the user wants resampling.
In Preferences it probably would also be a good idea to give the option: Change current image, Resize to new image, Backup current image then resize.
-
LeviFiction
- Advisor
- Posts: 6831
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Re: Performance: How can PSP improve?
I have made two simple scripts, one to change resolution the other to change resolution and resample keeping print size
Best part, they use the resolution setting from the preferences so no need to edit the scripts to make them work, and they run silently all the time.
If you want one that uses maximum print size which setting is most portant, print size or resolution? If both the old an new resolution are greater in print size than the maximum do we choose a resolution to bring the print size down ir do we use the method that gives the closest to the maximum?
Best part, they use the resolution setting from the preferences so no need to edit the scripts to make them work, and they run silently all the time.
If you want one that uses maximum print size which setting is most portant, print size or resolution? If both the old an new resolution are greater in print size than the maximum do we choose a resolution to bring the print size down ir do we use the method that gives the closest to the maximum?
https://levifiction.wordpress.com/
-
Rick_R
- Posts: 194
- Joined: Sat Sep 24, 2011 5:20 am
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: ASUSTeK Computer INC F2A85-V Pro
- processor: AMD A6-6400K APU
- ram: 8GB
- Video Card: PowerColor AMD Radeon R7 240 2GB DDR3
- sound_card: On-board Realtek and AMD High Definition Audio
- Hard_Drive_Capacity: 16TB+375GB
- Monitor/Display Make & Model: SEIKI SE39UY04 39in 4K UHD TV
- Corel programs: PaintShop Pro 12-2022 Ultimate
- Location: Dallas, Texas USA
Re: Performance: How can PSP improve?
Nev -- since this is basically your topic, do you think it might be better to move this discussion to the X10 Wishlist?
If it's not basically a one-button or one-of-two buttons solution, then it doesn't really seem to be much of a "performance" suggestion.
If it's not basically a one-button or one-of-two buttons solution, then it doesn't really seem to be much of a "performance" suggestion.
Re: Performance: How can PSP improve?
Thanks for your suggestion Rick R.Rick_R wrote:Nev -- since this is basically your topic, do you think it might be better to move this discussion to the X10 Wishlist?
If it's not basically a one-button or one-of-two buttons solution, then it doesn't really seem to be much of a "performance" suggestion.
I'm honestly good either way and not sure how strict this forum is in regards to ensuring that posts are (directly) related to the original topic. Personally, I find all of these comments to be insightful, so I'll let all of you who are more experience with this forum decide.
