diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-12-18 21:46:42 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-12-18 21:46:42 +0400 |
commit | 6571713ddb7e1f091c30a43b315fb37778605ed2 (patch) | |
tree | 6a5cc8bf047a0ee50701db2ace65013834383345 /intern | |
parent | 6b3e880311e1046ec60d8647dc4dd0eb0cd4d92c (diff) |
Ambient occlusion baker from multi-resolution mesh
This implements AO baking directly from multi-resolution mesh with much
less memory overhead than regular baker.
Uses rays distribution implementation from Morten Mikkelsen, raycast
is based on RayObject also used by Blender Internal.
Works in single-thread yet, multi-threading would be implemented later.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/guardedalloc/intern/mallocn.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/guardedalloc/intern/mallocn.c b/intern/guardedalloc/intern/mallocn.c index d747f042cbc..11fa477c2a4 100644 --- a/intern/guardedalloc/intern/mallocn.c +++ b/intern/guardedalloc/intern/mallocn.c @@ -561,6 +561,8 @@ void MEM_printmemlist_stats(void) qsort(printblock, totpb, sizeof(MemPrintBlock), compare_len); printf("\ntotal memory len: %.3f MB\n", (double)mem_in_use / (double)(1024 * 1024)); + printf("peak memory len: %.3f MB\n", + (double)peak_mem / (double)(1024 * 1024)); printf(" ITEMS TOTAL-MiB AVERAGE-KiB TYPE\n"); for (a = 0, pb = printblock; a < totpb; a++, pb++) { printf("%6d (%8.3f %8.3f) %s\n", |