diff options
author | Robert Wenzlaff <rwenzlaff@soylent-green.com> | 2003-10-20 01:47:03 +0400 |
---|---|---|
committer | Robert Wenzlaff <rwenzlaff@soylent-green.com> | 2003-10-20 01:47:03 +0400 |
commit | 147895715a31bc83d07afd52864dc0046e3b65da (patch) | |
tree | bd07980ceca1493290d09c88f31816c6713d6aef /source/blender/render/extern | |
parent | 7ac2731e63e0102583238541ee9dd786b9ff3746 (diff) |
Dynamic Face/Vert/Halo/Lamp tables:
User Info:
Hard coded limits on the total number of face, verts, halos, and lamps
is gone. Blender now allocates the tables for these on an as needed
basis. As long as your system can come up with the memory, you won't
run out. As a bonus, it also uses slightly less memory on smaller scenes.
Coder info:
This has been in tuhopuu for a while, but I don't know how hard it
has been tested. Since it now allocates only an initial 1024 tables
(of 256 verts/faces/halos each), it seems like it has been put through
it's paces. Lamps are allocated one at a time, and I start with 256.
I rendered 2.5M Faces/Verts/Halos. 4444 lamps. None the less, I left
a few printf's in the realocation to hunt bugs. I'll take them out
just before the release freeze.
Also, be on the lookout for other "sanity checks" that assume
a limited number of the above items. I think I got them all, but
you never know.
Diffstat (limited to 'source/blender/render/extern')
-rw-r--r-- | source/blender/render/extern/include/render_types.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/render/extern/include/render_types.h b/source/blender/render/extern/include/render_types.h index 9777393685c..9b1f0ac02e6 100644 --- a/source/blender/render/extern/include/render_types.h +++ b/source/blender/render/extern/include/render_types.h @@ -37,9 +37,8 @@ #include "DNA_world_types.h" #include "DNA_object_types.h" -/* Definitely weird: this equals 1<<21... so wtf?*/ -#define MAXVERT (2<<20) -#define MAXVLAK (2<<20) +#define TABLEINITSIZE 1024 +#define LAMPINITSIZE 256 /* This is needed to not let VC choke on near and far... old * proprietary MS extensions... */ |