Text archives Help
- From: Carson Brownlee <
>
- To:
- Subject: [Manta] Re: transactions in manta - setting camera
- Date: Tue, 9 Dec 2008 15:40:37 -0700
the difference is that the transaction will be called when manta isn't
rendering. the transaction is "safer" incase you have a shader that
is referencing camera data in parallel to the gui code setting it.
This is unlikely but possible, all calls like that should be done in a
transaction. It wouldn't be a major loss in this case though as
memory isn't being remapped, I don't think setBasicCameraData deletes
the old cameraData.
Carson
On Dec 9, 2008, at 3:37 PM, J. Davison de St. Germain wrote:
Hi,
What is the difference between:
data = manta_new(BasicCameraData(eye,lookat,up,fov,fov))
engine.getCamera(0).setBasicCameraData(data)
And creating a transaction to do the same thing?
Thanks,
Dav
--
-----------------------------------------------------------------------
- J. Davison de St. Germain
(801) 581-4078 -
- Chief Software Engineer
http://www.cs.utah.edu/~dav -
- SCI Institute, SE C-SAFE University of Utah -
-----------------------------------------------------------------------
Archive powered by MHonArc 2.6.16.