Shadows = Low FPS

Posted By: Dreher

Shadows = Low FPS - 08/08/09 21:02

Hi there,

I'm busy with a funfair attraction simulation, and to make it look alittle bit better, I've decided to add shadows to it.

The model without shadows on 1024 x 768 = 110~ FPS
The model with shadows on 1024 x 768 = 34~ FPS

Each object has: my.shadow = on; - and in the main function I have: shadow_stencil = 3;

And this is how it looks:



http://img512.imageshack.us/img512/1123/sfshadow1.jpg

Is there a way to avoid that big FPS loss?

Because this is really unacceptable! laugh

Thanks in advance.
Posted By: the_mehmaster

Re: Shadows = Low FPS - 08/08/09 22:03

I would cast a shadow from a different LOD step, to increase the speed.
Posted By: Dreher

Re: Shadows = Low FPS - 08/08/09 22:13

I've tried (also writen within the Main function)

shadow_lod = 0; and also tried 1/2/3, but no changes in FPS.
Posted By: the_mehmaster

Re: Shadows = Low FPS - 08/08/09 22:15

Does your model have LOD steps?
Posted By: Dreher

Re: Shadows = Low FPS - 08/08/09 22:24

Looks like not..



http://img44.imageshack.us/img44/6338/sflod.jpg
Posted By: the_mehmaster

Re: Shadows = Low FPS - 08/08/09 22:31

Half the amount of polys in every mesh (using the mesh reducer), and use it as lod step 2.

Then you can set shadow_lod to 1.smile
Posted By: Dreher

Re: Shadows = Low FPS - 08/08/09 22:38

Thanks alot, it got it fixed.

I will keep this in mind next time! wink

This is awesome^
© 2024 lite-C Forums