hi there,
this is a question about programming methods really. Lets say i have a mod which makes
randomised sounds for a level. Its made up of two actors, one of them is nothing more than a
database of available sounds and the other actually plays the sounds. That way i can have lots of the
'playsound' actors but the mapper only has to enter the sound data once.
Would it be better to have the 'database' actor deal out the sounds to the play actors before the level
starts or would it be better to have to playactors just look up which sound to play from the 'database' actor.
Is there a significant increase in overheads when an actor accesses data from another object ( otherobject.somedata)
compared to accessing the data from itself ( self.somedata )?
I just assumed because the data has to travel between 2 actors that are not close to each other that it would take
longer or be a greater strain on the cpu.
- Thanks
this is a question about programming methods really. Lets say i have a mod which makes
randomised sounds for a level. Its made up of two actors, one of them is nothing more than a
database of available sounds and the other actually plays the sounds. That way i can have lots of the
'playsound' actors but the mapper only has to enter the sound data once.
Would it be better to have the 'database' actor deal out the sounds to the play actors before the level
starts or would it be better to have to playactors just look up which sound to play from the 'database' actor.
Is there a significant increase in overheads when an actor accesses data from another object ( otherobject.somedata)
compared to accessing the data from itself ( self.somedata )?
I just assumed because the data has to travel between 2 actors that are not close to each other that it would take
longer or be a greater strain on the cpu.
- Thanks
Comment