mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-12-06 03:07:18 +00:00
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
@@ -929,7 +929,7 @@ final class WorldController {
|
||||
for (int k2 = anInt451; k2 < anInt452; k2++) {
|
||||
Ground class30_sub3 = aclass30_sub3[i2][k2];
|
||||
if (class30_sub3 != null) {
|
||||
if (class30_sub3.anInt1321 > i1 || !aBooleanArrayArray492[i2 - anInt453 + drawDistance][k2 - anInt454 + drawDistance] && anIntArrayArrayArray440[k1][i2][k2] - l < 50) {
|
||||
if (class30_sub3.anInt1321 > i1 || (!ClientSettings.ANDROID && !aBooleanArrayArray492[i2 - anInt453 + drawDistance][k2 - anInt454 + drawDistance]) && anIntArrayArrayArray440[k1][i2][k2] - l < 50) {
|
||||
class30_sub3.aBoolean1322 = false;
|
||||
class30_sub3.aBoolean1323 = false;
|
||||
class30_sub3.anInt1325 = 0;
|
||||
@@ -1706,7 +1706,7 @@ final class WorldController {
|
||||
}
|
||||
boolean flag = false;
|
||||
while (k1 <= j2) {
|
||||
if (aBooleanArrayArray492[l][k1++]) {
|
||||
if (ClientSettings.ANDROID || aBooleanArrayArray492[l][k1++]) {
|
||||
flag = true;
|
||||
break;
|
||||
}
|
||||
@@ -1746,7 +1746,7 @@ final class WorldController {
|
||||
}
|
||||
boolean flag1 = false;
|
||||
while (l1 <= k2) {
|
||||
if (aBooleanArrayArray492[l1++][i1]) {
|
||||
if (ClientSettings.ANDROID || aBooleanArrayArray492[l1++][i1]) {
|
||||
flag1 = true;
|
||||
break;
|
||||
}
|
||||
@@ -1792,7 +1792,7 @@ final class WorldController {
|
||||
boolean flag2 = false;
|
||||
label0 : for (int i4 = i3; i4 <= l3; i4++) {
|
||||
for (int j4 = i2; j4 <= l2; j4++) {
|
||||
if (!aBooleanArrayArray492[i4][j4]) {
|
||||
if (!ClientSettings.ANDROID && !aBooleanArrayArray492[i4][j4]) {
|
||||
continue;
|
||||
}
|
||||
flag2 = true;
|
||||
|
||||
Reference in new issue
Block a user