Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,435 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
phent_enable or pent_settype #209913
06/06/08 15:23
06/06/08 15:23
Joined: Jan 2002
Posts: 692
berlin
MB Offline OP
User
MB  Offline OP
User

Joined: Jan 2002
Posts: 692
berlin
to save resources I thought of switching on/off the physcis attribute of an entity.
Given that the velocioty of the object is below a certain margin I would decide to "mute" the object; when it would behit or touchend by some entity (via IMPACT) I would switch it on agaon.

But what is better in terms of performance:
To register / deregister an entity
or to use phent_enable instead?



Last edited by MB; 06/06/08 15:24.
Re: phent_enable or pent_settype [Re: MB] #209917
06/06/08 15:34
06/06/08 15:34
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
you don't have to do this yourself. there already is a built-in sleep feature. -> ph_setautodisable()

Re: phent_enable or pent_settype [Re: ventilator] #209918
06/06/08 15:41
06/06/08 15:41
Joined: Jan 2002
Posts: 692
berlin
MB Offline OP
User
MB  Offline OP
User

Joined: Jan 2002
Posts: 692
berlin
thanks Ventilator


Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1