Enhance socket management and improve android support

- Added proper socket closure and nullification in OnDemandFetcher to prevent resource leaks.
- Introduced touch target areas in RSApplet to streamline touch interactions.
- Made fullGameScreen public in RSApplet for external access.
- Implemented a master screen buffer and a locking mechanism in RSImageProducer for better synchronization.
- Reduced initial sleep duration in Signlink and added a close method for better resource management.
- Increased texture array sizes in Texture for improved rendering capabilities.
- Modified WorldController to optimize rendering logic based on platform (Android) and enhance performance.
This commit is contained in:
Dark98 committed 2026-11-10 20:34:25 +00:00
1 parent 9570a35bae
commit 87fece4854
9 files changed
+622 -244

No files matched your search

+8 -1
View File
@@ -19,6 +19,13 @@ public class RSApplet extends Applet implements Runnable, MouseListener, MouseWh
private int mouseWheelY = 0;
public static boolean removeShiftDropOnMenuOpen;
public static final int TARGET_DEFAULT = 0;
public static final int TARGET_VIEWPORT = 1;
public static final int TARGET_TAB = 2;
public static final int TARGET_CHAT = 3;
public static final int TARGET_MINIMAP = 4;
public static int touchTargetArea = TARGET_DEFAULT;
final void createClientFrame(int i, int j) {
myWidth = j;
myHeight = i;
@@ -738,7 +745,7 @@ public class RSApplet extends Applet implements Runnable, MouseListener, MouseWh
int myWidth;
int myHeight;
Graphics graphics;
RSImageProducer fullGameScreen;
public RSImageProducer fullGameScreen;
RSFrame gameFrame;
private boolean shouldClearScreen;
boolean awtFocus;