-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing frame on initial load #1
Comments
Implemented page-reload workaround with commit 9f711ed Leaving the issue open, hoping to find a proper fix... |
... sadly does not resolve issue #1 ..... =(
Created page rule on cloudflare to bypass cache for paulbh.com/breakout, since development mode only lasts for 3 hours. |
Not resolved, have been able to replicate this since enabling development mode and or the page rule... 😩 |
Disabling cache in NGINX not resolved |
Updated PM2 on VPS - Not resolved |
After more testing tonight, disabling Cloudflare on the site all-together does in fact seem to resolve the issue. Not wanting to do this, I enabled "Optimized Delivery" and "Rocket Loader™" from Cloudflare under "Speed → Optimizations", and it seems to happen significantly less.... but maybe not totally resolved. Edit: after more testing, issue still rarely reproduceable. Disabling CloudFlare may have helped because the assets were served just a bit faster than with it, avoiding the bug mentioned lower down 👇 |
Have not been able to replicate on mobile Firefox OR Chrome since changes, so that's nice at least... |
Issue in phaser with loading normal map with spritesheets. After speaking to others in Discord, it turned into: |
Work-around from samme:
|
Load normal & spritesheet separately, then add the normal as a dataSource to the spritesheet
So this worked "mostly", except would occasionally result in the normal map being loaded as the image for the spritesheet... Resulting in a psychedelic adventure: This was seemingly resolved by updating from Phaser 3.55 to Phaser 3.6 HOWEVER The issue with missing frames still exists when trying to load the normal map the "new" way, even on 3.6: this.load.spritesheet({
key: SHEETS.Tiles,
url: "assets/main-tileset/breakout-extruded.png",
normalMap: "assets/main-tileset/breakout-extruded_n.png",
frameConfig: {
frameWidth: 16,
frameHeight: 16,
spacing: 2,
margin: 1,
startFrame: 0,
endFrame: 99,
},
}); So issue phaserjs/phaser#6491 in Phaser still stands, but I am closing this as my workarounds are working. edit. |
This has been fixed in Phaser 3.70.0 phaserjs/phaser#6491 (comment) We can go back to the modern way of loading normal maps with spritesheets: this.load.spritesheet({
key: SHEETS.Tiles,
url: "assets/main-tileset/breakout-extruded.png",
normalMap: "assets/main-tileset/breakout-extruded_n.png",
frameConfig: {
frameWidth: 16,
frameHeight: 16,
...
},
}); |
We can now load spritesheets and their associated normal maps together call thanks to fix in phaser 3.7.0
We can load spritesheets and their normal maps at once again thanks to fix in phaser 3.70.0
Sometimes, only on live server, even though the "tiles" spritesheet loads, we get a texture error.
Mashing reload / ctrl+shift r (to force reload without cache) can sometimes reproduce it.
Only happens on live server, cannot duplicate on development
The text was updated successfully, but these errors were encountered: