Fredborg's box packing code

BlitzMax Forums/BlitzMax Programming/Fredborg's box packing code

*(Posted 2010) [#1]
Hi looking at this http://www.blitzbasic.com/codearcs/codearcs.php?code=1208 I am wondering if anyone has converted it to BlitzMax already and if so would the source be available.

I am in the process of converting it over myself and wondered if someone has already done it why 'reinvent the wheel' so to speak.


Jesse(Posted 2010) [#2]
I had some free time so I converted it but the results are not good. as it is definitely a lot slower then the original.

I started using straight Tlist but the process of clearing up the list and repopulating it was causing it to drag so I kind of cheated and went in to the private part of Tlink. this made it a lot faster but still not as fast as the original code. I don't know what else to do other than making it all straight arrays. I might do that next time I have some free time.
I doubt the way I used Tlink will brake code in the future but use at your own risk.




*(Posted 2010) [#3]
Thanks you saved me a LOT of time :)