szucsati Posted June 18, 2006 Share Posted June 18, 2006 Hello, When I select an area I have about 30% CPU load but if I add a new area (ctrl + left) Paint .net slows down and I got 100% CPU load. So for the first selection everything is fine but for the 2nd/3rd/nth Paint .net kills my processor . Is this an unique problem ? I had this problem in 2.62 as well. Benchmark: Total time: 244056 milliseconds CPU: AMD Thorton 2000+ @ 1250MHz RAM: 512 MB Attila Quote Link to comment Share on other sites More sharing options...
aatwo Posted June 18, 2006 Share Posted June 18, 2006 I get the same problem when I am selecting multiple areas. Quote Deviant Art Gallery Link to comment Share on other sites More sharing options...
Rick Brewster Posted June 18, 2006 Share Posted June 18, 2006 It's just the algorithm we're using right now, it's very brute force and slow. A more efficient algorithm is very complicated (there's a reason Adobe gets the big bucks), and I'm hoping to implement it for our next release (v3.0). I already understand the new algorithm, it's just very tricky to implement correctly. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
aatwo Posted June 18, 2006 Share Posted June 18, 2006 Don't get me wrong I wasn't complaining or anything. ...From things I've read around the forum it sounds like the next version is going to be pretty good ^_^ Quote Deviant Art Gallery Link to comment Share on other sites More sharing options...
Illnab1024 Posted June 19, 2006 Share Posted June 19, 2006 I suppose what you have right now just gives the x,y of every selected pixel and puts it in memory, but what exactly does adobe do about this? Quote ~~ Link to comment Share on other sites More sharing options...
aatwo Posted June 19, 2006 Share Posted June 19, 2006 it probably uses ranges of pixels rather than the co-ordinates of every single selected pixel in a similar way that identically colour pixels are saved insome image types (I think). Quote Deviant Art Gallery Link to comment Share on other sites More sharing options...
Rick Brewster Posted June 19, 2006 Share Posted June 19, 2006 No this new algorithm doesn't work with pixels, it works with the vertices of the polygon that you're drawing. Do a search for "Efficient Clipping of Arbitrary Polygons" and maybe you'll find it. It's actually an intuitive algorith, I was surprised, definitely easier than Vatti's algorithm, but like I said it's tricky to implement (but much less so than Vatti's). Right now the performance of this operation in Paint.NET will be proportional to the number of pixels inside the bounding box of the selection (both the original plus what you are adding/removing). The new one will have performance proportional to the number of vertices in the selection's polygon. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.