question about entitys render time
Blitz3D Forums/Blitz3D Beginners Area/question about entitys render time
| ||
hi... in my race car game y have cars, with some mesh separate for details.. something like this.. type car field mesh field wheel[4] field wheel_low_detail[4] field inside field lights end type if the car is far of the camera, i hide the inside, lights, wheels etc. if i have to many cars, like 70 cars, but i hide all entity details mesh, is like that meshes don't exist for the time proccess? |
| ||
Yes.. this is how many particle systems work... they hide / unhide to eliminate entity creation times :) |
| ||
They won't be processed for rendering, but they will be processed for collisions and other purposes. It's not completely as though they don't exist in so much as the renderer is effectively sayingFor M=Each Mesh If Hidden(M)=False If InViewFrustum(M)=True Render(M) End If End If Next It's still getting a tiny bit of processing time, but not very much. |
| ||
:).. entitydistance and entityinview are the two function ultra fast for blitz? |
| ||
A lot of people favour EntityDistance (even instead of collisions) - fast. Expect EntityInView to be slower. |
| ||
If you have used HideEntity then collisions are not applied by Blitz. |