null54

PSFilterPdn (2018-08-13)

Recommended Posts

Hi all.

Just a newbie here who enjoys pottering around with PDN in his spare time.

 

Is there a way that the .8bf folder can populate more quickly or does this depend on local pc speeds/capabilities etc. or how many .8bf plugins you have in the plugin file?

I am using Windows 10 and PDN 4.0.17 Everything else loads quickly enough but the .8bf plugin (latest) can take anywhere from between 45 seconds to 75 seconds to populate.

Is this normal please?

 

Many thanks for any help.

 

D.

Share this post


Link to post
Share on other sites
2 hours ago, Scaramouche said:

Is there a way that the .8bf folder can populate more quickly or does this depend on local pc speeds/capabilities etc. or how many .8bf plugins you have in the plugin file?

 

The search speed would depend on the number of folders in the Search Directories tab and the number of 8bf files located in those folders.

 

2 hours ago, Scaramouche said:

Everything else loads quickly enough but the .8bf plugin (latest) can take anywhere from between 45 seconds to 75 seconds to populate.

 

That would not surprise me.

Each time PSFilterPdn is launched it searches the folders and gathers the information it needs from every 8bf file it finds.

Share this post


Link to post
Share on other sites

My load times are no where near 45 to 75 seconds, but I was able to reduce my time of 2.65 seconds by about 30%  (this was with over 3,000 .8bf files installed).

@null54 -> https://github.com/0xC0000054/PSFilterPdn/pull/1

 

Hopefully that optimization will be more significant for @Scaramouche ... unless his/her bottleneck is Disk I/O.

Share this post


Link to post
Share on other sites
1 hour ago, toe_head2001 said:

My load times are no where near 45 to 75 seconds, but I was able to reduce my time of 2.65 seconds by about 30%.

 

If the load time is 45 to 75 seconds then it sounds to me like disk I/O may be a big part of the issue.

 

Perhaps the list of 8bf filters should be stored in the EffectConfigToken, at least that way it only scans the disk the first time it is opened.

Or the filter information could be serialized to disk and used across Paint.NET sessions, this is what GIMP's PSPI plugin does.
 

2 hours ago, toe_head2001 said:

(this was with over 3,000 .8bf files installed)

 

I never anticipated PSFilterPdn would be used with that many filters.:noes:

I am surprised that the Windows Forms TreeView works with that many items.

 

Regarding your pull request, I am surprised that the TreeView sorting is such a bottleneck.

I have not decided if I will be merging it, accepting 3rd party contributions would restrict me from changing to a different open source license.

  • Like 1

Share this post


Link to post
Share on other sites

I have downloaded the 8bf filter plugin from @null54. The plugin should let Adobe Photoshop filters work in PDN. So I downloaded it and also a couple of PS filters. But I did al the steps and when I go to the effects tab and click on 8bf filter the filters I downloaded show up. But when I want to run the filters, there is a loading screen but litteraly nothing happens to the picture I selected.

 

So could someone help me please, I know this forum is kind of dead but I really want to use these PS filters.

Share this post


Link to post
Share on other sites
13 minutes ago, Rembrandt said:

... there is a loading screen but literally nothing happens to the picture I selected.

 

A loading screen, eh? Can you post a screenshot of the loading screen?

Share this post


Link to post
Share on other sites

That appears to be the dialog Paint.NET shows when it is waiting for an effect to finish rendering.

 

Are you using Paint.NET's "Repeat Filter"  command to run PSFilterPdn?

If not I am somewhat confused because the main "8bf filter" window should never cause Paint.NET to display that dialog.

 

Also what is the name of the filter you are trying to use?

There may be some kind of compatibility issue with the filter and PSFilterPdn.

Share this post


Link to post
Share on other sites
1 hour ago, Rembrandt said:

Well, I use Flaming Pears’ free pack and I do not press repeat filter. I just choose the filter I want to use and press OK 

 

Fixed in 1.0.7.0.

 

Other changes include:

  • Support for the Paint.NET "Dark" theme
  • Improved performance when launching the effect dialog multiple times
  • Settings should be remembered during the current session for most filters

Additionally all filters now have access to the PICA suites, this should improve compatibility with newer filters.

  • Like 1
  • Upvote 1

Share this post


Link to post
Share on other sites
33 minutes ago, Rembrandt said:

I don't know what you've changed but it still doesn't work at me.

 

I added a line that should prevent the "8bf filter" dialog from closing when a filter is running.

 

23 hours ago, Rembrandt said:

I just choose the filter I want to use and press OK

 

When you say "Press OK" are you referring to the OK button in the "8bf filter" dialog?

Share this post


Link to post
Share on other sites
On 8/14/2018 at 2:24 PM, null54 said:

 

I added a line that should prevent the "8bf filter" dialog from closing when a filter is running.

 

 

When you say "Press OK" are you referring to the OK button in the "8bf filter" dialog?

 

Yes, I’m referring to the OK button in the 8bf filter dialog.

Share this post


Link to post
Share on other sites
1 hour ago, Rembrandt said:

Yes, I’m referring to the OK button in the 8bf filter dialog.

 

My guess is that there is some kind of race condition in the code that I use to check if a filter is running.

But as I have been unable to reproduce this error I do not know what I would need to change to fix it. 😕

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now