Blender Git Loki

Git Commits -> Revision 80bd3a1

Revision 80bd3a1 by Ton Roosendaal (master)
January 28, 2006, 10:30 (GMT)
Orange: fix for threaded rendering. Discovered that for some reason the
threads didn't seem to free allocated memory... while rendering an long
sequence, the 'virtual memory' size grew with about 20 meg per frame.
This appeared to be not related to using malloc in threads (works
properly), but just because threads were not closed properly.

I assumed that the call to SDL_CreateThread() also closes the thread
when finished... but that seems to be not the case. By using a call to
SDL_WaitThread() after the thread was finished the memory heap is stable
again.

This is something I've seen not documented anywhere... the SDL man
pages are horrible sparse; Take for example the official page:

http://manuals.thexdershome.com/SDL-1.2.5/html/sdlcreatethread.html

Commit Details:

Full Hash: 80bd3a1e9897044334d3384be27b52efc6541fef
SVN Revision: 6561
Parent Commit: bb2e2b9
Lines Changed: +18, -10

1 Modified Path:

/source/blender/render/intern/source/pipeline.c (+18, -10) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021