Blender Git Commit Log

Git Commits -> Revision 22a18ec

Revision 22a18ec by Martin Poirier (master)
July 6, 2005, 00:33 (GMT)
3D view orbit option: Around Active
This fixes the active object in place when orbiting the view.
Choppy 15fps demo can be seen there: http://www.elysiun.com/~theeth/bf/around_active.html


Image Memory Grabage Collection
This adds memory handling to the image code. An image is tagged each time it is used.
During a collection cycle (frequency of cycles is user defined), if an image is older
than a user defined limit, its buffer gets deallocated. This also applies to gl memory buffers.
Images that are loading in GL memory needs to go through two time outs before being fully deallocated: the first time out deallocated the gl memorry, the second the buffer in ram.

Notes:
Image buffer loaded from python gets tagged as permanent upon load. That tag is removed when python stops using the image.
I might have missed some tagging spots, especially in the rendering pipeline. Someone with more knowledge about this code should check to be careful.
Tagging is done on every access, for rendering, this will probably be a performance hit. A scheme should be developped to only tag when the rendering is completed.
Collecting is called in draw_object, most likely not the best place to do it.
Safe from undo, since using undo deallocates memory anyway (like when loading a blend file with one currently opened)


Userpref DNA changes:
I've changed a couple of flagging variables from short to int. Some because they needed more space, others to keep SDNA happy.


Info window changes:
I've grouped a couple of buttons in aligned blocks and changed the color of mutually exclusive options to make them clearer.
Matt didn't do any changes on that in tuhopuu, so hopefully I'm not stepping on anyone's feet with this.


Also changed double constants into floats with f in a couple of places (mostly space.c) to make compiler happier.

Commit Details:

Full Hash: 22a18ecdb85afb88294be2e1891aa4918e9a5c45
SVN Revision: 4649
Parent Commit: d50b2c0
Lines Changed: +276, -82

15 Modified Paths:

/source/blender/blenkernel/BKE_image.h (+6, -0) (Diff)
/source/blender/blenkernel/intern/image.c (+91, -2) (Diff)
/source/blender/blenloader/intern/readfile.c (+4, -0) (Diff)
/source/blender/makesdna/DNA_image_types.h (+3, -0) (Diff)
/source/blender/makesdna/DNA_userdef_types.h (+4, -2) (Diff)
/source/blender/python/api2_2x/Draw.c (+3, -0) (Diff)
/source/blender/python/api2_2x/Image.c (+7, -0) (Diff)
/source/blender/render/intern/source/pixelshading.c (+2, -0) (Diff)
/source/blender/render/intern/source/texture.c (+1, -0) (Diff)
/source/blender/src/drawimage.c (+1, -1) (Diff)
/source/blender/src/drawmesh.c (+3, -1) (Diff)
/source/blender/src/drawobject.c (+2, -0) (Diff)
/source/blender/src/drawview.c (+2, -0) (Diff)
/source/blender/src/space.c (+103, -75) (Diff)
/source/blender/src/view.c (+44, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021