Re: pfAllocChanData

New Message Reply Date view Thread view Subject view Author view

Jim Helman (jimh++at++surreal)
Tue, 11 Oct 94 11:43:00 -0700


What you describe should work. We already have an RFE on slaving
multiple ChanPassDatas together. However, two points:

1) ChanPassData is copied downstream every frame. 1000 pfCoords would
be 48K bytes * NumChan, which is a fair amount to copy. If I used
ChanPassData, I would probably put it PostFrame rather than in the
latency-critical PreFrame where it could hold off the start of the
CULL.

2) Large blocks of data are best passed by reference rather than by
value like ChanPassData does. You could do your own multibuffering
by creating several copies of FishData and passing the pointer to the
current one down in ChanPassData. Doing this properly for all
possible cases of cull/draw frame overruns is tricky, which is why
2.0 will have a new construct to support multibuffering of data.

rgds,

-jim helman

jimh++at++surreal.asd.sgi.com
415/390-1151


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:35 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.