Pages: 1
Author Topic: Deactivating objects outside the view ?  (22,261 Views)
Offline (Unknown gender) egofree

Contributor
Joined: Jun 2013
Posts: 601
View profile
Posted on: June 20, 2013, 06:06:21 PM
I read that in GM it's a good practice to deactivate objects (with 'instance_deactivate_region' for example) which are outside the view, as they are consuming CPU resources. Is it the same with the ENIGMA engine ?
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Reply #1 Posted on: June 20, 2013, 07:17:17 PM
It's the same for any engine, yeah. It takes discipline, though, as you need to be sure to reactivate the flooring no later than you reactivate things that fall, for instance.

ENIGMA's instance activation functions are in need of serious TLC, but they should work.
Offline (Unknown gender) TheExDeus

Developer
Joined: Apr 2008
Posts: 1,860
View profile
Reply #2 Posted on: June 20, 2013, 07:24:27 PM
Of course ENIGMA usually takes a lot more objects than GM, so in most games you should have no need to deactivate stuff.
Pages: 1