Blender Git Commit Log

Git Commits -> Revision 1478957

Revision 1478957 by Robert Wenzlaff (master)
October 19, 2003, 21:47 (GMT)
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.

Commit Details:

Full Hash: 147895715a31bc83d07afd52864dc0046e3b65da
SVN Revision: 1358
Parent Commit: 7ac2731
Lines Changed: +72, -26

4 Modified Paths:

/source/blender/render/extern/include/render_types.h (+2, -3) (Diff)
/source/blender/render/intern/source/initrender.c (+4, -4) (Diff)
/source/blender/render/intern/source/renderdatabase.c (+46, -7) (Diff)
/source/blender/renderconverter/intern/convertBlenderScene.c (+20, -12) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021