The problem is you're using RotateMesh with several spheres with large amounts of polys. With RotateMesh, each vertex is rotated individually by MiniB3D itself which is quite slow.
Use RotateEntity where possible for real-time stuff.
Use RotateEntity where possible for real-time stuff.