Re: performer memory management

New Message Reply Date view Thread view Subject view Author view

Raoul Becke (rbecke++at++iiic.ethz.ch)
Mon, 12 Oct 1998 16:00:02 +0200 (MET DST)


Hi Jason,
me too I had many troubles with performers memory management. A temporary
solution is to change the memory address of the shared arena with
pfSharedArenaBase((void*)0x18000000), so that the heap doesn't crash any
longer with the shared arena (see:
http://www.sgi.com/Technology/Performer/relnotes2.2.html Known Problems
and Workarounds). If this isn't working try out other base addresses but
I've to admit that I've similar hacks (pfVec3 dummy[3]) in my program.
hope this helps
cu
Raoul
/*****************************************************************************/
/*Raoul Becke $$$'`$$$$$$$$$$$$$$$$$$$$ */
/*Baltenschwilerstr. 52 $$$$ $$$$$$$$$$$$$$$$$$$ */
/*8962 Bergdietikon $$$$. `$' \' \'`\$$$$$$$$ */
/*Tel. 01/740 17 94 $$$$$. !\ i i i$$$$$$$ */
/*Fax 01/740 17 49 $$$$$$ `-'`-'`-'$$$$^^$ */
/*e-mail rbecke++at++datacomm.ch (at home) $$$$$$L `""~ $$ */
/*e-mail rbecke++at++iiic.ethz.ch (at the ETH Zuerich) $$$$$$$. .' .$$$ */
/* $$$$$$$ $$$$$$$by$RB$ */
/*****************************************************************************/

On Thu, 8 Oct 1998, jason allen bryan wrote:

> hello all!
> i have a stumper for all the pfGuru's out there:
> while writing a small simulation in performer, i ran
> into some problems debugging pfVec3 and pfMatrix intensive
> code, specifically that code related to object placement
> and manipulation in a scene. it seems even the most basic
> operations on these class instances failed to function as
> expected. a pfVec3 would be initialized and work fine for
> one or two iterations, and then all of a sudden acquire
> illegal values for floating point numbers. normally i would
> assume a problem with my code. in this case, i was able to
> fix the problem by allocating a few more dummy pfVec3's
> before allocating those pfVec3's needed by the simulation.
> i.e.
> /* does not work */
> pfVec3 pos, vel, acc, ... etc
> pfMatrix orientation, ... etc
> void UpdateScene () {
> ... }
> ...etc
>
> /* works */
> pfVec3 dummy[3];
> pfVec3 pos, vel, acc, ... etc
> pfMatrix orientation, ... etc
> void UpdateScene () {
> ... }
> ...etc
>
> i know performer has a great deal of run-time library support
> and that dynamic allocation of some performer classes is tricky,
> if not impossible. it seems to me the problem lies in performer's
> management of its shared memory arena.
> has anyone experienced a problem similar to this? does anyone know
> the solution?
> the simulation is currently being designed to run on an Onyx or
> Onyx2, IRIX6.5, with performer2.2.
> thanks in advance to whomever responds!
>
> jason bryan
>
> Ohio Supercomputer Center
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Oct 12 1998 - 07:01:19 PDT

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