banks, types, and arrays

Blitz3D Forums/Blitz3D Beginners Area/banks, types, and arrays

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

Thanks for the praise, Jams. :)

mindstorms: Yes, because you're avoiding two function calls, any and all error checking, and index calculations for dimensions you're not using. Also, I've heard banks are slow - although I suspect and hope this is only in Debug mode.

By the way, if you use integer math you can simplify your 1d-to-2d index calculations:

x% = n% mod width%
y% = n% / width%

And why isn't your 2d-to-1d index calculation simply:

n% = x% + y% * width%