Quote from: spasi on May 10, 2024, 09:48:53Btw, do you mean a java.lang.OutOfMemoryError or a process-OOM error followed by a JVM crash?
Quote from: fireinwinterfell on May 08, 2024, 02:41:20usually hits error "OutOfMemory"
Quote from: spasi on May 09, 2024, 11:02:06- Run the code as is, but do not call glBufferData.->
Quote from: spasi on May 09, 2024, 11:02:06- Replace the temporary FloatBuffer with a single, fixed buffer that is being reused between calls.->Memory consumption is a about 20 % lower (fixed FloatBuffer is 1024).
Quote from: spasi on May 09, 2024, 11:02:06How many times do you call storeDataInAttributeList and with how much data?thousands -> a few hundred thousand, a few 2d vertices (lines) to about a few hundred (polylines).