Tune WebGL quality and loading screen

This commit is contained in:
yangbear
2026-07-14 03:14:46 +08:00
parent 53fe281ecc
commit 2ce29568ee
5 changed files with 110 additions and 5 deletions
+2 -1
View File
@@ -59,7 +59,7 @@
var buildUrl = "Build";
var loaderUrl = buildUrl + "/7a2dbded24d57e056180125b1583e7c4.loader.js";
var config = {
dataUrl: buildUrl + "/c1ac39c2807bce9c7f9071edf08b1ab0.data.gz",
dataUrl: buildUrl + "/d1e2d1e3e120229ced20d8237eae353c.data.gz",
frameworkUrl: buildUrl + "/62981e01aece13a94bac539c85228c75.framework.js.gz",
codeUrl: buildUrl + "/e89ebbd31642308ad16cecffa889584e.wasm.gz",
streamingAssetsUrl: "StreamingAssets",
@@ -75,6 +75,7 @@
}
return "must-revalidate";
};
config.devicePixelRatio = Math.min(window.devicePixelRatio || 1, 1.5);
// By default Unity keeps WebGL canvas render target size matched with
// the DOM size of the canvas element (scaled by window.devicePixelRatio)