api: remove cachedModels2 and nodecache setters
This is being moved internally since it benefits areas like the farming guild even with gpu off
This commit is contained in:
@@ -66,7 +66,6 @@ import net.runelite.api.BufferProvider;
|
||||
import net.runelite.api.Client;
|
||||
import net.runelite.api.GameState;
|
||||
import net.runelite.api.Model;
|
||||
import net.runelite.api.NodeCache;
|
||||
import net.runelite.api.Perspective;
|
||||
import net.runelite.api.Renderable;
|
||||
import net.runelite.api.Scene;
|
||||
@@ -407,12 +406,6 @@ public class GpuPlugin extends Plugin implements DrawCallbacks
|
||||
|
||||
textureArrayId = -1;
|
||||
|
||||
// increase size of model cache for dynamic objects since we are extending scene size
|
||||
NodeCache cachedModels2 = client.getCachedModels2();
|
||||
cachedModels2.setCapacity(256);
|
||||
cachedModels2.setRemainingCapacity(256);
|
||||
cachedModels2.reset();
|
||||
|
||||
if (client.getGameState() == GameState.LOGGED_IN)
|
||||
{
|
||||
invokeOnMainThread(this::uploadScene);
|
||||
|
||||
Reference in New Issue
Block a user