Skip to content

Commit

Permalink
Deploying to gh-pages from @ 9a9d828 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
aglitchman committed Jan 29, 2024
1 parent 9cdb79b commit a1a32cb
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion archive/archive_files.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"content":[{"name":"game.projectc","size":3731,"pieces":[{"name":"game.projectc0","offset":0}]},{"name":"game.arci","size":1968,"pieces":[{"name":"game.arci0","offset":0}]},{"name":"game.arcd","size":54838,"pieces":[{"name":"game.arcd0","offset":0}]},{"name":"game.dmanifest","size":2080,"pieces":[{"name":"game.dmanifest0","offset":0}]},{"name":"game.public.der","size":162,"pieces":[{"name":"game.public.der0","offset":0}]}]}
{"content":[{"name":"game.projectc","size":3758,"pieces":[{"name":"game.projectc0","offset":0}]},{"name":"game.arci","size":2048,"pieces":[{"name":"game.arci0","offset":0}]},{"name":"game.arcd","size":43446,"pieces":[{"name":"game.arcd0","offset":0}]},{"name":"game.dmanifest","size":2169,"pieces":[{"name":"game.dmanifest0","offset":0}]},{"name":"game.public.der","size":162,"pieces":[{"name":"game.public.der0","offset":0}]}]}
Binary file modified archive/game.arcd0
Binary file not shown.
Binary file modified archive/game.arci0
Binary file not shown.
Binary file modified archive/game.dmanifest0
Binary file not shown.
1 change: 1 addition & 0 deletions archive/game.projectc0
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ max_count = 128
max_count = 64
max_particlefx_count = 64
max_particle_count = 1024
max_animation_count = 1024

[collection]
max_instances = 1024
Expand Down
7 changes: 5 additions & 2 deletions dmloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ var EngineLoader = {
async function fetchWithProgress(path) {
const response = await fetch(path);
// May be incorrect if compressed
const contentLength = response.headers.get("Content-Length");
var contentLength = response.headers.get("Content-Length");
if (!contentLength){
contentLength = EngineLoader.wasm_size;
}
const total = parseInt(contentLength, 10);

let bytesLoaded = 0;
Expand Down Expand Up @@ -479,7 +482,7 @@ var Progress = {

updateProgress: function(percentage) {
if (Progress.bar) {
Progress.bar.style.width = percentage + "%";
Progress.bar.style.width = Math.min(percentage, 100) + "%";
}
Progress.notifyListeners(percentage);
},
Expand Down
Binary file modified ext_webgl_memory_example.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion ext_webgl_memory_example_wasm.js

Large diffs are not rendered by default.

0 comments on commit a1a32cb

Please sign in to comment.