Hi all,
I'm making a chess game with Alvarus, which is mostly finished except for AI and 3d animation. The models are about 4000 polygons each. I was trying to animate them on the fly using the rotate limb command, but it slows the framerate too much.
Running the following code on my system, I get these results:
objects_to_rotate = 0: 748 fps
objects_to_rotate = 1: 73 fps
objects_to_rotate = 2: 37 fps
objects_to_rotate = 3: 25 fps
If you look at the code, I'm not even rotating the limbs on every frame. Using the rotate limb once permanently reduces the frame rate.
Obviously I could use smaller objects, but can anyone think of ANY other way to animate the characters while keeping a decent framerate?
input "Rotate limbs on how many objects?", objects_to_rotate
SYNC ON
SYNC RATE 0
for x = 1 to 3
model$="c:\modeltest\" + str$(x) + ".dbo"
load object model$,x
next x
for x=1 to objects_to_rotate
rotate limb x, 4, 1, 1, 1
next x
do
text 0,0,"FPS: " + str$(screen fps())
sync
loop