1.2B5 Measure Tool Bug

Thoughts, Help, Feature Requests, Bug Reports, Developing code for...

Moderators: dorpond, trevor, Azhrei

Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior. :)
Post Reply
dorpond
RPTools Team
Posts: 5534
Joined: Thu Jun 01, 2006 2:05 pm
Location: Buffalo, NY

1.2B5 Measure Tool Bug

Post by dorpond »

Measuring tool causes Maptool to lock and the processor sticks at 50% utilization.

No error in Java console since it locks too.

All I do is try to measure from one side of the screen to the other side of the screen while zoomed out as far as I can go. My goal was to measure in feet how many miles my map is so far :)

I can reproduce this with just a basic unbound quickmap.

User avatar
trevor
Codeum Arcanum (RPTools Founder)
Posts: 11311
Joined: Mon Jan 09, 2006 4:16 pm
Location: Austin, Tx
Contact:

Post by trevor »

sounds good, I'll take a look
Dreaming of a 1.3 release

Phergus
Deity
Posts: 7132
Joined: Fri May 12, 2006 8:56 pm
Location: Middle of Nowhere, NM
Contact:

Post by Phergus »

You just have to be patient Dorpond. On the super wide maps the longer you measure the harder it works. By dragging very slowly and allowing MT to keep up I was able to measure across that fortress map from side to side.

Probably some optimization to be done there however.

dorpond
RPTools Team
Posts: 5534
Joined: Thu Jun 01, 2006 2:05 pm
Location: Buffalo, NY

Post by dorpond »

I waited over 3 minutes with no activity but my fan kicking into high gear to cool off my processor :)

Maybe you are right - maybe I needed to wait longer than those 3 minutes. My patience ran out so I killed it - had more important things to do atm :)

Phergus
Deity
Posts: 7132
Joined: Fri May 12, 2006 8:56 pm
Location: Middle of Nowhere, NM
Contact:

Post by Phergus »

Sounds like you need a faster computer. ;)

I wasn't at maximum zoom out but enough to see from one side to the other on your map and did it in 20-30 seconds. About 500 cells and it really started slowing down on me and beyond that I would have to wait longer periods between updates.

Certainly not a great user experience on large maps but I expect it can be resolved.

User avatar
trevor
Codeum Arcanum (RPTools Founder)
Posts: 11311
Joined: Mon Jan 09, 2006 4:16 pm
Location: Austin, Tx
Contact:

Post by trevor »

It'll be interesting to profile that action to see what's taking up the cycles. The only thing I can think of is the a-star calculations creating the path. But that should be pretty quick.
Dreaming of a 1.3 release

dorpond
RPTools Team
Posts: 5534
Joined: Thu Jun 01, 2006 2:05 pm
Location: Buffalo, NY

Post by dorpond »

Phergus wrote:Sounds like you need a faster computer. ;)
Don't tell me that - it cost me 3 grand 2 years ago! :shock:

Phergus
Deity
Posts: 7132
Joined: Fri May 12, 2006 8:56 pm
Location: Middle of Nowhere, NM
Contact:

Post by Phergus »

Costs money to stay on the cutting edge brother. :twisted:

Phergus
Deity
Posts: 7132
Joined: Fri May 12, 2006 8:56 pm
Location: Middle of Nowhere, NM
Contact:

Post by Phergus »

trevor wrote:It'll be interesting to profile that action to see what's taking up the cycles. The only thing I can think of is the a-star calculations creating the path. But that should be pretty quick.
Dunno but the behavior is as if it is exponential in distance.

Oh my! You don't want to try this experiment on a hex grid! :shock:

I'm guessing the number of paths to check is going up very quickly.

User avatar
trevor
Codeum Arcanum (RPTools Founder)
Posts: 11311
Joined: Mon Jan 09, 2006 4:16 pm
Location: Austin, Tx
Contact:

Post by trevor »

Phergus wrote: I'm guessing the number of paths to check is going up very quickly.
Actually the number of paths goes down because you only have 6 neighbors instead of 8 in a square grid
Dreaming of a 1.3 release

Phergus
Deity
Posts: 7132
Joined: Fri May 12, 2006 8:56 pm
Location: Middle of Nowhere, NM
Contact:

Post by Phergus »

Wasn't actually thinking of hexes in particular when I made that comment but you are correct in the hex map would have fewer potential paths and not more.

Whatever it is that is causing the problem is much, much worse on hex maps.

User avatar
trevor
Codeum Arcanum (RPTools Founder)
Posts: 11311
Joined: Mon Jan 09, 2006 4:16 pm
Location: Austin, Tx
Contact:

Re: 1.2B5 Measure Tool Bug

Post by trevor »

dorpond wrote:Measuring tool causes Maptool to lock and the processor sticks at 50% utilization.
I've put in some optimizations for the pathing code that will be in 1.2b6. It will improve rendering times for token movement and distance measurement.
Dreaming of a 1.3 release

dorpond
RPTools Team
Posts: 5534
Joined: Thu Jun 01, 2006 2:05 pm
Location: Buffalo, NY

Post by dorpond »

Thanks Trevor! Optimization is always a good thing since we all win! :)

User avatar
trevor
Codeum Arcanum (RPTools Founder)
Posts: 11311
Joined: Mon Jan 09, 2006 4:16 pm
Location: Austin, Tx
Contact:

Post by trevor »

dorpond wrote:Thanks Trevor! Optimization is always a good thing since we all win! :)
It still chokes a little when you zoom aaaalll the way out and measure across the visible screen, but at least doesn't just die.
Dreaming of a 1.3 release

Post Reply

Return to “MapTool”