[Bf-committers] Re: Hard vert and face limit.

Robert Wenzlaff bf-committers@blender.org
Wed, 03 Sep 2003 17:35:28 -0400


At 08:03 PM 9/3/03 +0200, you wrote:

 >For the "init rendering" phase, the tables for verts and faces can also
 >be re-allocated dynamically, using the RE_findOrAddVlak and
 >RE_findOrAddVert calls.

>When the current table size is too small, it just can make larger
>tables, going up in powers of 2. No other code needs to be changed, nor
>hacking with countall() code...

I thought about doing it this way, and for average scenes, that would be 
fine.  But we are talking code that used for mega-scenes.  Realocating an 
array on the fly sometimes involves copying the current contents to a new 
memory block, and if the machine is already strapped for RAM...  I suppose 
this only happens once per frame,  and we're only talking a few tens of 
thousands of pointers, though.

I'll look into it some more tonight.

Robert Wenzlaff (AKA Detective Thorn)