[ODE] (no subject)

Shaul Kedem shaul_kedem at yahoo.com
Wed Nov 7 09:24:02 MST 2001


"
> 2. the linker option that changes the stack size is
> /Stack:<num in bytes>, I compiled everything again
> with size of 8192000 and now it works! well, to the
> point in which the process utilize 100% of my CPU
and
> stops rendering :) . when using 200 boxes, how much
> space does o(n^2) takes?

good question, i have never measured it. do this:
capture the stack
pointer at the end of the dInternalStepIsland_x2
function, then
compare it with the SP in main. get the SP with this
function:

  void *grabStackPtr ()
  {
    int a;
    return &a;
  }
"

- Well, as I know you held your breath for this info,
here it is:
I wrote the function grabStackPtr, at the start of the
main function the stats are:
grabStackPtr, main :0xc2fe64

right before it crashes because of stack overflow,
this is the info:

grabStackPtr, dInternalStepIsland_x2 :0x68bd260

which is 97047548 bytes, which means it takes over 90
MB.

can that be ? - the windows task manager says it takes
20mb of vm and 10mb of regular "mem usage".

btw, if you roll a cylinder into a box, there is no
contact point and the cylinider simply go through the
box.

- shul.






__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com



More information about the ODE mailing list