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:
jean-pierre charras 2016-04-07 14:56:16 -04:00 committed by Wayne Stambaugh
parent 5f72cca19a
commit a0d41f75ff
1 changed files with 2 additions and 0 deletions

View File

@ -170,6 +170,8 @@ void CACHED_CONTAINER::Delete( VERTEX_ITEM* aItem )
test();
#endif
// 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 )