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:
@@ -1769,8 +1769,6 @@ public interface Client extends GameEngine
|
||||
|
||||
TextureProvider getTextureProvider();
|
||||
|
||||
NodeCache getCachedModels2();
|
||||
|
||||
void setRenderArea(boolean[][] renderArea);
|
||||
|
||||
int getRasterizer3D_clipMidX2();
|
||||
|
||||
@@ -33,8 +33,4 @@ public interface NodeCache
|
||||
* Resets cache.
|
||||
*/
|
||||
void reset();
|
||||
|
||||
void setCapacity(int capacity);
|
||||
|
||||
void setRemainingCapacity(int remainingCapacity);
|
||||
}
|
||||
|
||||
@@ -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