Use the buffer builder thread config on startup

modified config values after start are ignored for now
This commit is contained in:
James Seibel
2023-02-14 20:35:23 -06:00
parent 7e2b5e65be
commit 7bc8b46ac0
@@ -33,8 +33,8 @@ import static com.seibel.lod.core.render.glObject.GLProxy.GL_LOGGER;
public class ColumnRenderBuffer extends AbstractRenderBuffer
{
//TODO: Make the pool use configurable number of threads
public static final ExecutorService BUFFER_BUILDERS = LodUtil.makeThreadPool(4, "BufferBuilder");
//TODO: Make the pool change thread count after the config value is changed
public static final ExecutorService BUFFER_BUILDERS = LodUtil.makeThreadPool(Config.Client.Advanced.Threading.numberOfBufferBuilderThreads.get(), "BufferBuilder");
public static final ExecutorService BUFFER_UPLOADER = LodUtil.makeSingleThreadPool("ColumnBufferUploader");
public static final int MAX_CONCURRENT_CALL = 8;