Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
MakinoharaShoko committed Nov 6, 2023
2 parents 27c66a8 + bf85281 commit 63515c4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions packages/webgal/src/Core/controller/stage/pixi/PixiController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,18 @@ export default class PixiStage {
this.backgroundContainer.zIndex = 0;
app.stage.addChild(this.effectsContainer, this.figureContainer, this.backgroundContainer);
this.currentApp = app;
// 每 5s 获取帧率
// 每 5s 获取帧率,并且防 loader 死
const update = () => {
this.updateFps();
setTimeout(update, 10000);
};
update();
// loader 防死
const reload = () => {
setTimeout(reload, 500);
this.callLoader();
};
reload();
}

public getFigureObjects() {
Expand Down Expand Up @@ -703,7 +709,7 @@ export default class PixiStage {
/**
* Loader 复用疑似有问题,转而采用先前的单独方式
*/
this.loadQueue.push({ url, callback });
this.loadQueue.unshift({ url, callback });
/**
* 尝试启动加载
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/webgal/src/config/info.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const __INFO = {
version: 'WebGAL 4.4.6.2',
version: 'WebGAL 4.4.6.3',
contributors: [
{ username: 'Mahiru', link: 'https://github.com/MakinoharaShoko' },
{ username: 'Hoshinokinya', link: 'https://github.com/hshqwq' },
Expand Down

0 comments on commit 63515c4

Please sign in to comment.