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
5f72cca19a
commit
a0d41f75ff
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue