Text archives Help
- From: "James Bigler" <
>
- Cc: "Abe Stephens" <
>,
- Subject: [Manta] Re: Re: Safely removing/updating primitive in the scene?
- Date: Mon, 16 Jun 2008 14:37:54 -0600
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=HUn/z6/Y+1PsV22qHredb4VTv6UNelkQ06JF+qmgmvGgNfC0kzs5EbSGBlHTJV+q3R N1W1pr9UQ/vcDFcoCDC2Dl0p7a0XZzzp+fXlxvXZif1xo4ZfuLOwpknGpZB/sJ5iSbHY I9OTyMEnGjPd7vvwBilEcezPhhqcQ2VycmnPU=
On Mon, Jun 16, 2008 at 12:24 PM, Li-Ta Lo
<
>
wrote:
>
>
On Mon, 2008-06-09 at 12:06 -0600, Abe Stephens wrote:
>
> Yes, any state change that occurs after the engine is started must
>
> occur inside a transaction or callback.
>
>
>
> http://code.sci.utah.edu/Manta/index.php/Manta_architecture#Transactions_and_Other_Callbacks
>
>
>
>
I am not so sure I understand this right. Does it mean EVERY thing in
>
the scene? like change the color of a light too?
If you want the change to occur in a thread safe way, then yes. Any
change to the scene needs to occur in a transaction or call back.
One obvious way to avoid this is to double buffer your variables (one
set used during rendering, one set to pick up the changes). We did
this in a previous version of the renderer, and found it to be much
more tedious to maintain many copies of any variable we wanted to
change and do the copying.
James
Archive powered by MHonArc 2.6.16.