Which is Faster?

Blitz3D Forums/Blitz3D Programming/Which is Faster?

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.

You can't, if you want to manage the player with array without type, you must have 5 arrays

dim player_name$( )
dim player_mesh( )
dim player_x( )
dim player_y( )
dim player_z( )

So this is why there was 2 arrays

You don't need 5 arrays. You only need 2 arrays.

Dim Player_Name$(amount)
Dim Player_Vars(amount, 3)

The second array is a two dimensional array.
Player_Vars(amount, 0) = mesh
Player_Vars(amount, 1) = x
Player_Vars(amount, 2) = y
Player_Vars(amount, 3) = z


or possibly 3 arrays

Dim Player_Name$(amount)
Dim Player_Mesh(amount)
Dim Player_Vars#(amount, 2)

The third array is a two dimensional float array.
Player_Vars#(amount, 0) = x
Player_Vars#(amount, 1) = y
Player_Vars#(amount, 2) = z