Latest Uploads
Day 1 - Ga ... eboy Racer

rychan

Pain_Claim.png

Jayenkai

Monkey Maz ... pload test

Pakz

image-26-1 ... 37-09.jpeg

Jayenkai

image-14-1 ... 50-52.jpeg

Jayenkai

Socoder_9yo.png

Jayenkai

Forum Home

dim

UserMessage
Posted : Monday, 10 January 2011, 20:03 | Permalink
dna



What is the Maximum value that NN can be in the statement dim(NN)?

Also, when taking input for a dim, what is that max?

I ask because I have my program hang when i input a number larger than 100000


-----
DNA
Posted : Monday, 10 January 2011, 21:27 | Permalink | Mark Here
dna


Just FYI. I used the Rand instead of the Rnd function and still after generating the data file I got a " " space embedded in the text.
I then went to implicitly force the lower bound of 1, although the docs mention that its supposed to be done by the system, and thus far there are no " " spaces being generated by a random (pardon the pun) NULL or 0 (Zero).

-----
DNA
Posted : Tuesday, 11 January 2011, 10:09 | Permalink | Mark Here
j\'ordos


blitz gave a memory access violation error (with debug enabled) when I dimmed 1000000000, one zero less still worked fine.
Posted : Tuesday, 11 January 2011, 11:29 | Permalink | Mark Here
dna


Thanks for that information.
My original post concerned the filling of the dimensioned array.
When doing so in my program, there is a large pause.

Also, you should know that I am using B2D. In B3D there might be a difference.


-----
DNA
Posted : Tuesday, 11 January 2011, 11:36 | Permalink | Mark Here
j\'ordos


When filling the array (with rand(2) ) I get the same limit. I can fill up to 1000000 of them instantly, though I suppose this depends mainly on your cpu & ram and even your hd?

I'm using blitz3D though.
Posted : Tuesday, 11 January 2011, 14:21 | Permalink | Mark Here
dna


I have a Core 2 Duo with 1 Gig Ram, 30Gig drive w 21G free.

It may be B2d then and if so then I might have to try a different method.

-----
DNA
Posted : Tuesday, 11 January 2011, 14:53 | Permalink | Mark Here
JL235


WW Entries : 7
Technically your graphics card should play a role as Windows needs to map some of your address space to video memory (so the bigger your card the less ram you have). But this only affects 32-bit systems.

Otherwise your allowed to go up to around 3gb, regardless of your ram and CPU (thanks to virtual memory).

Try using data banks, they might allow you to store more memory. It might be that BB's internal usage or arrays is more expensive then it needs to be and so is using tonnes of memory. However an array of 1000000 ints should only be using around 3.8mb, which is pitiful.

Also AFAIK the language of Blitz2D and Blitz3D is identical (including it's implementation). It's only the libraries which differ (obviously the fact that BB3D has a 3D library).

-----
PlayMyCode.com - build and play in your browser, Blog, Twitter.
Homepage : http://www.StudioFortress.com
Posted : Tuesday, 11 January 2011, 15:15 | Permalink | Mark Here
dna



That is interesting as well JL235.

Something else may be going on here then.

I also never knew that B3D was not that much different from B2D. I'm missing more fun.


-----
DNA
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Latest Posts
Happy Birthday, Stealth
Jayenkai Tue 03:10
AGameAWeek : 2016 - Part One
Jayenkai Mon 13:22
Tin Can Alley
steve_ancell Mon 05:02
Die Alien Slime *cough* Walkthru
GfK Sun 14:52
Anybody recommend an artist?
GfK Sun 14:44
Pebble Watch Clocks
Jayenkai Sun 10:01
Global Warming
rockford Sun 05:49
Happy Birthday, Jay's Mum
spinal Sun 01:34
NerdBlock
Jayenkai Sat 05:13
Top Gear V3
Jayenkai Fri 14:15
More

Latest Items
Showcase : Monkey Plotting
zzoom Tue 15:46
Showcase : Waifu Clicker
rychan Mon 14:54
Showcase : Space Station A6-100
Jayenkai Wed 12:20
Showcase : Novascape
rychan Fri 01:09
Showcase : Space INvasion Zero
rychan Wed 15:38
Showcase : Harpoons and Balls
Jayenkai Tue 02:46
Showcase : NeonPlat's Cosmic Adventure
Jayenkai Fri 12:56
Dev-Diary : Centipede remake
steve_ancell Wed 19:25
Showcase : Beta Collexion
rychan Mon 13:55
Dev-Diary : Global Variables!
rychan Thu 06:33
Showcase : Spike Dislike GB
rychan Wed 04:18
Blog : Back on the run
rychan Wed 01:03
Showcase : The Catcher Van
rychan Mon 04:40
Showcase : GodOfMiniWars
gameleaper Sun 20:12
Showcase : WarTactical
gameleaper Mon 17:08
More

Who's Online
Jayenkai
Tue, at 03:17
rockford
Tue, at 02:45
spinal
Tue, at 02:21
GfK
Tue, at 02:09
shroom_monk
Tue, at 01:31
therevillsgames
Tue, at 00:37
Dabz
Mon, at 22:00
HoboBen
Mon, at 20:41
Pakz
Mon, at 18:26
Stealth
Mon, at 17:40
Link to this page
Site : Jayenkai 2006-Infinity | MudChat's origins, BBCode's former life, Image Scaler.