Types/Memory Usage

Blitz3D Forums/Blitz3D Beginners Area/Types/Memory Usage

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Correct me if i'm wrong, but the first way to do this uses alot of memory, the second way doesn't eat memory until the new player is created, right?

Dim p.player(1000000)

and this way:

type players
field player.player[1000000]
end type

type player
field stream
field etc etc etc
end type

p.players=new Players
p\player[1]=new player
etc