How to hide terrain debug draw ?

Post Reply
peanutandchestnut
Posts: 8
Joined: Mon Feb 02, 2015 8:40 am

How to hide terrain debug draw ?

Post by peanutandchestnut »

Hi, i'm using bullet(2.82) terrain with ogre1.9
It works fine except it takes too much performance to debug draw wireframe of terrain.
The fps drop below 5 if i toggle draw wireframe, i can barely move my camera.
Is there a way to disable debug draw of terrain ? :?: For most of time, i just want to focus on characters and other scene objects.
c6burns
Posts: 149
Joined: Fri May 24, 2013 6:08 am

Re: How to hide terrain debug draw ?

Post by c6burns »

set collision flag btCollisionObject::CF_DISABLE_VISUALIZE_OBJECT
peanutandchestnut
Posts: 8
Joined: Mon Feb 02, 2015 8:40 am

Re: How to hide terrain debug draw ?

Post by peanutandchestnut »

:D Thanks c6burns
Post Reply