OpenGL mode: Disable frequent (and not very usefull) memory deallocation/reallocation to avoid "out of memory" issue due to heap fragmentation (noticeable only with large boards).
Note: there is still this issue when switching back legacy mode and to Opengl mode because the heap is still freed and reallocated.
This commit is contained in:
parent
b8a91c7a98
commit
18cb83f5c7
|
@ -175,7 +175,8 @@ void CACHED_CONTAINER::Delete( VERTEX_ITEM* aItem )
|
|||
// can create memory fragmentation and no room to reallocate large chuncks
|
||||
// after many free/reallocate cycles during a session using the same complex board
|
||||
// So it can be disable.
|
||||
#if 1
|
||||
// Currently: it is disable to avoid "out of memory" issues
|
||||
#if 0
|
||||
// Dynamic memory freeing, there is no point in holding
|
||||
// a large amount of memory when there is no use for it
|
||||
if( m_freeSpace > ( 0.75 * m_currentSize ) && m_currentSize > m_initialSize )
|
||||
|
|
Loading…
Reference in New Issue