? Array Size (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password

Array Size

  • #1 ✎ 12 Waffles_X Night Person I like the quiet night and sleep late. Express Yourself Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Touhou Project Is Awesome! I love Touhou Project! Express Yourself For a new game i'm making I need to know what is the most amount of elements and array can hold in SB. Does anyone know that limit? Posted
  • #2 ✎ 163 MochaProbably Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Night Person I like the quiet night and sleep late. Express Yourself Drawing I like to draw! Hobbies With an integer array it’s like 2000x2000ARRAY%[2000,2000] It won’t work because it’s too big but it’s some where around there. Posted
  • #3 ✎ 12 Waffles_X Night Person I like the quiet night and sleep late. Express Yourself Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Touhou Project Is Awesome! I love Touhou Project! Express Yourself Wow, that a lot! I was expecting it to be lower. With there is no way possible for my game to make arrays that big, but I still just wanted to know. Thanks. Posted
  • #4 ✎ 163 MochaProbably Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Night Person I like the quiet night and sleep late. Express Yourself Drawing I like to draw! Hobbies
    Wow, that a lot! I was expecting it to be lower. With there is no way possible for my game to make arrays that big, but I still just wanted to know. Thanks.
    It is a lot lower if you use regular arrays. Be sure to remember the % at the end of the array name, that makes it an integer array. Integers take up a lot less space then floats. XD
    Posted Edited by MochaProbably
  • #5 ✎ 12 Waffles_X Night Person I like the quiet night and sleep late. Express Yourself Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Touhou Project Is Awesome! I love Touhou Project! Express Yourself I see... Posted
  • #6 ✎ 408 UnderCake Halloween 2017 Contest Runner Up I placed 2nd in the SmileBASIC Source Halloween 2017 Contest! Programming Contest Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength First Year My account is over 1 year old Website I believe unless I am thinking wrong, integer arrays just make the number in an array a whole number like "0" instead of there normal which would be "0.0". one uses decimals or something iirc, in any case it should not be a problem. Posted
  • #7 ✎ 163 MochaProbably Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Night Person I like the quiet night and sleep late. Express Yourself Drawing I like to draw! Hobbies
    I believe unless I am thinking wrong, integer arrays just make the number in an array a whole number like "0" instead of there normal which would be "0.0". one uses decimals or something iirc, in any case it should not be a problem.
    Integer arrays only hold numbers like 0,1,2,3,4 and 5 and nothing in between. Regular arrays hold those numbers and any decimal in between (up to 99 numbers in total before or after the decimal).
    Posted
  • #8 ✎ 1578 12Me21 Head Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Second Year My account is over 2 years old Website SB gives you access to about 8MB (8*1024*1024 bytes) of memory, and since integers are 4 bytes and floats are 8, the biggest array would technically be 2097152 (integer) or 1048576 (float). In reality it's slightly less than that, and of course it also depends on how many other variables and arrays you have. Posted