English Amiga Board


Go Back   English Amiga Board > abime.net - Hosted Projects > project.Maptapper

 
 
Thread Tools
Old 01 July 2013, 14:38   #1
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
Map Search V Slow

I have noticed on a couple of occasions the map search is extremely slow when matching tiles.

I am currently trying to match Alfred Chicken and it is taking a good 2-3 minutes to run through the process. My screenshot is 320x256

Any reasons?
BippyM is offline  
Old 02 July 2013, 03:11   #2
Codetapper
2 contact me: email only!
 
Codetapper's Avatar
 
Join Date: May 2001
Location: Auckland / New Zealand
Posts: 3,182
Yes, basically it's the garbage in-garbage out principle. Imagine you give it a match which is

0,0,0,0
0,0,0,0
0,0,1,0
3,4,6,7

The first 2 lines are completely useless, as there are potentially thousands of bytes in memory that are a run of the same value. Maptapper does 2 passes, one trying to find exact matches on that sequence, and if that fails it will look for any match with the same differences. Hence 10,10,10,10 would match the first line as the difference is 0. Then it has to check all other combinations to find if the match was good.

You must always give Maptapper a unique block of indexes or the search will be very slow.

And perhaps illogically, it is better to give maptapper a larger block to match than a small one. A grid of 6x6 indexes is far better than a grid of 3x3 as it can eliminate dud entries much quicker and try the next sequence.

With regards to matching a screenshot to tiles, if you have a lot of blank tiles to start with, this will also be very slow. I've seen one game where there about 60 blank tiles at the start, and all those have to be tested when matching.

If you want, upload the savestate and I can see what you're doing that's causing it to be so slow.
Codetapper is offline  
Old 02 July 2013, 03:48   #3
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
It#s okay. I understand and Alfred Chicken had a bit of blank

Thanks again
BippyM is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Platman map Raislin77it HOL contributions 3 22 September 2012 11:41
SkyFox II - Map ricky500 request.Old Rare Games 3 01 July 2011 23:19
Frontier Map pubzombie support.Games 5 31 January 2011 21:15
Sensible Soccer, pitch1.map pitch2.map problem. Whitesnake project.WHDLoad 0 31 May 2006 14:52

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:48.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.18346 seconds with 15 queries