Multiple improvements to improve page load time

pull/33/head
tobspr 4 years ago
parent ab25f4751d
commit 1056fe389d

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

@ -575,6 +575,6 @@
"format": "RGBA8888",
"size": {"w":123,"h":380},
"scale": "0.1",
"smartupdate": "$TexturePacker:SmartUpdate:8070ac06277f5131500335ffd9170197:b1a366c7a8668dcf22b90fcff95a3dba:f159918d23e5952766c6d23ab52278c6$"
"smartupdate": "$TexturePacker:SmartUpdate:74461fa20e58ea6d62ee3dd3add52778:b1a366c7a8668dcf22b90fcff95a3dba:f159918d23e5952766c6d23ab52278c6$"
}
}

@ -575,6 +575,6 @@
"format": "RGBA8888",
"size": {"w":2028,"h":1634},
"scale": "1",
"smartupdate": "$TexturePacker:SmartUpdate:8070ac06277f5131500335ffd9170197:b1a366c7a8668dcf22b90fcff95a3dba:f159918d23e5952766c6d23ab52278c6$"
"smartupdate": "$TexturePacker:SmartUpdate:74461fa20e58ea6d62ee3dd3add52778:b1a366c7a8668dcf22b90fcff95a3dba:f159918d23e5952766c6d23ab52278c6$"
}
}

@ -575,6 +575,6 @@
"format": "RGBA8888",
"size": {"w":956,"h":244},
"scale": "0.25",
"smartupdate": "$TexturePacker:SmartUpdate:8070ac06277f5131500335ffd9170197:b1a366c7a8668dcf22b90fcff95a3dba:f159918d23e5952766c6d23ab52278c6$"
"smartupdate": "$TexturePacker:SmartUpdate:74461fa20e58ea6d62ee3dd3add52778:b1a366c7a8668dcf22b90fcff95a3dba:f159918d23e5952766c6d23ab52278c6$"
}
}

@ -575,6 +575,6 @@
"format": "RGBA8888",
"size": {"w":493,"h":1783},
"scale": "0.5",
"smartupdate": "$TexturePacker:SmartUpdate:8070ac06277f5131500335ffd9170197:b1a366c7a8668dcf22b90fcff95a3dba:f159918d23e5952766c6d23ab52278c6$"
"smartupdate": "$TexturePacker:SmartUpdate:74461fa20e58ea6d62ee3dd3add52778:b1a366c7a8668dcf22b90fcff95a3dba:f159918d23e5952766c6d23ab52278c6$"
}
}

@ -575,6 +575,6 @@
"format": "RGBA8888",
"size": {"w":1858,"h":1015},
"scale": "0.75",
"smartupdate": "$TexturePacker:SmartUpdate:8070ac06277f5131500335ffd9170197:b1a366c7a8668dcf22b90fcff95a3dba:f159918d23e5952766c6d23ab52278c6$"
"smartupdate": "$TexturePacker:SmartUpdate:74461fa20e58ea6d62ee3dd3add52778:b1a366c7a8668dcf22b90fcff95a3dba:f159918d23e5952766c6d23ab52278c6$"
}
}

@ -15,13 +15,13 @@
<key>spriteFilter</key>
<string></string>
<key>acceptFractionalValues</key>
<false/>
<true/>
<key>maxTextureSize</key>
<QSize>
<key>width</key>
<int>-1</int>
<int>2048</int>
<key>height</key>
<int>-1</int>
<int>2048</int>
</QSize>
</struct>
<struct type="AutoSDSettings">
@ -32,13 +32,13 @@
<key>spriteFilter</key>
<string></string>
<key>acceptFractionalValues</key>
<false/>
<true/>
<key>maxTextureSize</key>
<QSize>
<key>width</key>
<int>-1</int>
<int>2048</int>
<key>height</key>
<int>-1</int>
<int>2048</int>
</QSize>
</struct>
<struct type="AutoSDSettings">
@ -49,7 +49,7 @@
<key>spriteFilter</key>
<string></string>
<key>acceptFractionalValues</key>
<false/>
<true/>
<key>maxTextureSize</key>
<QSize>
<key>width</key>
@ -66,7 +66,7 @@
<key>spriteFilter</key>
<string></string>
<key>acceptFractionalValues</key>
<false/>
<true/>
<key>maxTextureSize</key>
<QSize>
<key>width</key>
@ -83,7 +83,7 @@
<key>spriteFilter</key>
<string></string>
<key>acceptFractionalValues</key>
<false/>
<true/>
<key>maxTextureSize</key>
<QSize>
<key>width</key>

@ -185,7 +185,6 @@ export class SoundImplBrowser extends SoundInterface {
keys.forEach(key => {
this.sounds[key] = new WrappedSoundInstance(this.sfxHandle, key);
});
console.log(this.sounds);
for (const musicKey in MUSIC) {
const musicPath = MUSIC[musicKey];
const music = new this.musicClass(musicKey, musicPath);

@ -157,7 +157,8 @@ export class PreloadState extends GameState {
if (G_IS_DEV) {
return Promise.resolve();
}
return waitNextFrame();
return Promise.resolve();
// return waitNextFrame();
}
showFailMessage(text) {

Loading…
Cancel
Save