Assigning meshes to arrays

Blitz3D Forums/Blitz3D Programming/Assigning meshes to arrays

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.

Yes, I know all about types :) but just wondering if theres a particular reason (performance wise) why the following example is bad? (in relation to array use)

	Graphics3D 800,600
	camera=CreateCamera()
	light=CreateLight(1)
	RotateEntity light,90,0,0
	Dim sphere(100,1)
	For i = 1 To 100
		sphere(i,0) = CreateSphere()
		PositionEntity sphere(i,0),Rand(-10,10),Rand(-5,5),Rand(5,50)
		sphere(i,1) = i
		Next
	RenderWorld
	For i = 1 To 100
		CameraProject camera,EntityX(sphere(i,0)),EntityY(sphere(i,0)),EntityZ(sphere(i,0))
		Color 0,0,0
		Text ProjectedX(),ProjectedY(),sphere(i,1),1,1
		Next
	Flip
	WaitKey()
	End
Not concerned about the graphical "clutter" - thats just there for testing.

+BlackD