Thread: Gump Studio
View Single Post
Old 01-14-2008, 01:12 PM   #11 (permalink)
Bradley
Forum Expert
 
Bradley's Avatar
 
Join Date: Oct 2002
Location: Hummelstown, PA
Age: 29
Posts: 487
Send a message via ICQ to Bradley Send a message via AIM to Bradley Send a message via MSN to Bradley Send a message via Yahoo to Bradley
Default

Quote:
Originally Posted by Jeff View Post
Bradley, the biggest gripe about Gump Studio is that once u get 50 items on the screen, moving any of them 1 pixel at a time is terribly slow. I believe this is due to the way you handle Undo and Redo stacking. As a test you could disable that code and see. There are better ways to do it. I know its possible to get rid of this because I did in RunUO:GDK. Another great idea would be making the selection of items done by pixel calls. If you click on an item, the order of checking to see if the item has been selected should be

if(gump.bounds.contains(point) && gump.image.getpixel(point - gump.location) != color.black))
{

}

This makes selecting items that overlap others ALOT easier.
I'll see what I can do about optimizing the display of a large number of elements. I'm fairly sure it's not related to the undo code, because an undo point is only created after the move has completed (ie, on mouse up of a drag), not durring the move. It's hard for me to test performance because I do not have an older / slower computer to test it on.

As for "pixel perfect" element selection, I think an option for this would be a good idea. I personally prefer the stack order selection on bounds, it makes it easier to select small items, but agree that some people like having it work on pixels.
__________________
-----------------------
If your response will contribute nothing to this discussion except to insult me, or someone else in this thread, please do not post.
I am refering to specific individuals.
You know who you are.
Bradley is offline   Reply With Quote