BBC BASIC for Windows
Programming >> Graphics and Games >> Using Dim hit limit at 399,399 for a tile map help http://bb4w.conforums.com/index.cgi?board=graphics&action=display&num=1438104320 Using Dim hit limit at 399,399 for a tile map help
Post by Torro on Jul 28th, 2015, 5:25pm
Set up a tile map for 399,399 Everything works
But if I want to go higher say 999,999 get dim space. error
Will Himem work have 8gb
or Alternatives to using a Dim arrays structure to define a tile map that could be huge potentially
Re: Using Dim hit limit at 399,399 for a tile map
Post by rtr2 on Jul 28th, 2015, 6:39pm
Set up a tile map for 399,399 Everything works But if I want to go higher say 999,999 get dim space. error
You don't say what kind of array (byte? 32-bit int? 64-bit int? variant? structure?) and obviously that determines the size of each element and thus the biggest array that will fit.
This code runs for me without issuing an error:
Code:
HIMEM = PAGE + 200000000
DIM array%(40000000)
That's 40 million elements, which is 100 times the size of yours!