Datablocks
by fire513 · in Arcane FX (Public) · 07/24/2010 (12:33 pm) · 4 replies
Quick question. Does Arcane FX allow an unlimmited number of datablocks in each mission?
From what I understand you are currently limmited to 1024 in each mission. I have also seen were you can change a variable in the sim.h file to increase this number but it decreases the number of objects that you can have at the same time.
I am using Torque3D.
Thanks for any help provided!
From what I understand you are currently limmited to 1024 in each mission. I have also seen were you can change a variable in the sim.h file to increase this number but it decreases the number of objects that you can have at the same time.
I am using Torque3D.
Thanks for any help provided!
About the author
#2
By the way AFX looks amazing and I plan on purchasing soon!
07/31/2010 (9:15 pm)
Thanks for the reply. So I am assuming that setting it to 13 allows for roughly 8191 datablocks and 4,294,959,104 object ids since it is 32 bit?By the way AFX looks amazing and I plan on purchasing soon!
#3
08/01/2010 (2:57 pm)
Quote:Yes, that's generally correct, although there is a small range of ids (64 I think) that are earmarked for message-objects.
So I am assuming that setting it to 13 allows for roughly 8191 datablocks and 4,294,959,104 object ids since it is 32 bit?
#4
08/02/2010 (11:40 am)
Thanks for the quick help. Everything makes more sense now.
Associate Jeff Faust
Faust Logic, Inc.
It is true that datablocks and objects share the space of a 32-bit integer for their id representation, so it is also true that increasing the value for DataBlockObjectIdBitSize also reduces the total number of possible object ids. However, there is an awful lot of headroom for regular object ids. With DataBlockObjectIdBitSize=13, the first object id is 8258. That leaves a lot of object ids before you overflow.
(Note that setting DataBlockObjectIdBitSize=13 does not mask off 13 bits of the object id. It merely specifies the number of bits required to send a datablock id over a network connection.)