Benchmark of mini b3d, blitz3d and blitzmax

Miscellaneous Forums/General Discussion/Benchmark of mini b3d, blitz3d and blitzmax

Hi,

Now blitz3d is in 3 flavours: minib3d, blitz3d and blitz3d library can we see some benchmarks?

Ideally I want to see if there's any performance difference between minib3d and blitz3d... and also blitz3d lib running with blitzmax.

Thinking of minib3d at the moment, as its free.

Tests I've seen (however accurate they may or may not be) so far indicate that B3DSDK+Max combo wins and MiniB3D loses, in the raw FPS stakes.

I'd also like to see some typical blitzmax b3d code... to see how hard/easy it is to use compared to traditional blitz3d.

This is the "rotatecube" example that comes with the B3DSDK. I hope Mark doesn't mind me posting this:
Import blitz3d.blitz3dsdk

bbBeginBlitz3D()

bbGraphics3D 800,600,0,2

Local cube=bbCreateCube()
Local light=bbCreateLight()
Local camera=bbCreateCamera()

bbPositionEntity camera,0,0,-4

bbMoveMouse 320,240

While Not bbKeyHit(BBKEY_ESCAPE)
	bbTurnEntity cube,1,2,3
	bbRenderWorld
	bbText 20,20,"mouse:"+bbMouseX()+","+bbMouseY()
	bbFlip 
Wend


That looks simple. Need to see speed tests if possible. I think there will be 0 speed difference.

I suspect max will edge b3d out slightly, as all the non-3d stuff (i.e. logic, operations, etc) will be in max. The 3d stuff should in theory be exactly the same, although calling the dll as opposed to an "in exe" function might be very marginally slower for each function.

A benchmark like that isn't much use really. A proper game needs porting or at least a reasonably complex application with a realistic amount of logic vs graphics.

Surely it's simple enough to port MiniB3D to B3DSDK

I've tested 22 animated meshes (1500 polys each) in both miniB3D and B3DSDK (identicle code).

B3DSDK = 20 FPS
miniB3D = 1 FPS

If I turn off animation...

B3DSDK = 20 FPS
miniB3D = 25 FPS

This is on PC, Vista, Athlon 64 1.81ghz, 1gig Ram, Radeon x1600.

Animated by bones or keyframes though? I understand boned/skinned animations are somewhat slower.

Boned, yes.