mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Enable atomic peak memory detection
This gives more precise information about memory usage which might be real handy when doing memory optimization. It works good here for as long as i can tell but if for some reason you'll be experiencing some weird slowdown please let me know.
This commit is contained in:
parent
0609aee4db
commit
f2280661cb
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ enum {
|
|||
#define MEMHEAD_IS_ALIGNED(memhead) ((memhead)->len & (size_t) MEMHEAD_ALIGN_FLAG)
|
||||
|
||||
/* Uncomment this to have proper peak counter. */
|
||||
//#define USE_ATOMIC_MAX
|
||||
#define USE_ATOMIC_MAX
|
||||
|
||||
MEM_INLINE void update_maximum(size_t *maximum_value, size_t value)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue