Juju thinks he's so clever by putting funny stuff here
Started by DJ Omnimaga, September 05, 2016, 11:52:41 pm
0 Members and 2 Guests are viewing this topic.
Quote from: DJ Omnimaga on September 08, 2016, 01:21:05 amThanks. The speed is actually a bit slow because when loading a walrus sprite I need to provide its ID and the calc has to go through an endless string of If commands with large string data before finally finding the right data and exiting that program. It might not seem like something that is normally slow, but said program is over 55 KB large, so that's a crapload of code to go through. I allievated the problem by grouping walruses into packs of 25 with three nested If/then/else blocks, so the speed is much greater than it originally was (although as a result, the speed at which walruses load varies depending of which one you try to load):Walrus 1 to 25 and 76 to 100: FasterWalrus 26 to 50 and 101 to 125: MediumWalrus 51 to 75 and 126 to 150: SlowerAnd that's because I only want to load one at a time since they wouldn't fit at once in memory, unless one day grosged implemented real-time sprite scaling.
CodeWalr.us 2.0 © 2019, DJ Omnimaga & Juju
Page created in 0.053 seconds with 36 queries.