Skip to content
This repository has been archived by the owner on Aug 7, 2022. It is now read-only.

Commit

Permalink
Fixed FPS
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiro527 committed Mar 30, 2021
1 parent f2434e1 commit 6675375
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
6 changes: 4 additions & 2 deletions app/js/lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ module.exports.ja_JP = class {
angleType = "Angleタイプ"
webgl2Context = "WebGL2 Compute Shader"
acceleratedCanvas = "ハードウェアアクセラレーション(2D)"
inProcessGPU = "In Process GPU"
inProcessGPU = "inProcessGPU"
resourceSwapper = "リソーススワッパー"
ignoreBlacklist = "ignoreGPUBlacklist"
}

module.exports.en_US = class {
Expand Down Expand Up @@ -76,6 +77,7 @@ module.exports.en_US = class {
angleType = "Angle Type"
webgl2Context = "WebGL2 Compute Shader"
acceleratedCanvas = "Hardware Acceleration(2D)"
inProcessGPU = "In Process GPU"
inProcessGPU = "inProcessGPU"
resourceSwapper = "Resource Swapper"
ignoreBlacklist = "ignoreGPUBlacklist"
}
9 changes: 9 additions & 0 deletions app/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,15 @@ module.exports = class utils {
val: config.get("inProcessGPU", false),
default: false
},
ignoreBlacklist: {
id: "ignoreBlacklist",
title: langPack.ignoreBlacklist,
category: "Video",
type: "checkbox",
restart: true,
val: config.get("ignoreBlacklist", false),
default: false
},
enableResourceSwapper: {
id: "enableResourceSwapper",
title: langPack.resourceSwapper,
Expand Down
2 changes: 1 addition & 1 deletion app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const initFlags = () => {
["enable-webgl2-compute-context", null, config.get("webgl2Context", true)],
["disable-accelerated-2d-canvas", "true", !config.get("acceleratedCanvas", true)],
["in-process-gpu", null, config.get("inProcessGPU", false)],
["ignore-gpu-blacklist", null, true],
["ignore-gpu-blacklist", null, config.get("ignoreBlacklist", false)],
// その他
["autoplay-policy", "no-user-gesture-required", true]
];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "laf",
"version": "1.1.0-beta.1",
"version": "1.1.0-beta.2",
"description": "Krunker Client Made in Japan.",
"main": "app/main.js",
"scripts": {
Expand Down

0 comments on commit 6675375

Please sign in to comment.