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:
1 parent
9570a35bae
commit
87fece4854
9 files changed
+622
-244
No files matched your search
@@ -13,6 +13,9 @@ import java.awt.image.ImageProducer;
|
||||
|
||||
final class RSImageProducer implements ImageProducer, ImageObserver {
|
||||
|
||||
public static final int[] masterScreenBuffer = new int[765 * 503];
|
||||
public static final Object masterBufferLock = new Object();
|
||||
|
||||
public RSImageProducer(int i, int j, Component component) {
|
||||
anInt316 = i;
|
||||
anInt317 = j;
|
||||
|
||||
Reference in new issue
Block a user