![]() |
|
#1
|
|||
|
|||
|
viz.collision enabled lag
Setup
-City enviorment (Buildings/tress/cars/etc)(As 1.ive file) -Mainview placed at a location in the city. Goal Move the camera around the city without being able to move through any objects in the city. Problem When I add viz.collision(viz.On) to enable collision for MainView my framerate drops to 22 from 60. Anybody have any idea how to bring my framerate back up to 60 with a collision enabled mainview? -Note The mainview is not linked to any objects. |
|
#2
|
|||
|
|||
|
Having a dense mesh can slow things down to a crawl if you try to do collisions with it. Instead it's common to build a much lighter collision mesh (eg, 10k polygons) for collisions. Hide the visibility of the collision mesh and disable collisions on the dense visible mesh.
|
|
#3
|
|||
|
|||
|
Along with using a lower poly mesh for collision tests, you can also use the viz.OPTIMIZE_INTERSECT_HINT flag to speed up collision tests with a particular mesh:
Code:
model.hint(viz.OPTIMIZE_INTERSECT_HINT) |
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to verify if texbox is enabled | disbeat | Vizard | 1 | 02-09-2011 01:20 PM |
| MainView.setPosition ignored when collisions are enabled | vTony | Vizard | 1 | 09-25-2008 09:12 AM |
| collision with physics enabled | joeymax | Vizard | 2 | 04-17-2008 02:49 PM |