Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,634
Reaction score
1,452
First Language
French
Primarily Uses
RMMV
Hi !
Someone would have an idea to how automatically start the FPS meter from chrome?
I'm talking about this option
fad-da-ea-e.jpg
I created a code that allows each startup to start the console.
but i didn't find the class to allow auto boot this FPS and GPU memory meter.!?

PHP:
//□▼↓▼□═══════════════════════════════════════════════════□□═══════════════════════════════════════════════════□↓↓↓
    //  AUTO SHOW DEBUG CONSOLE AT BOOT
    if (Utils.isNwjs() && Utils.isOptionValid('test')) {
        var _debugWindow = require('nw.gui').Window.get().showDevTools();
        console.log('_debugWindow: ', _debugWindow);
        _debugWindow.moveTo(0, 0);
        _debugWindow.height=800;
        _debugWindow.width=1000;
        window.focus();
    }
//□▲↑▲□═══════════════════════════════════════════════════□□═══════════════════════════════════════════════════□↑↑↑
thanks for help
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,634
Reaction score
1,452
First Language
French
Primarily Uses
RMMV
well, is solved .

simply add custom flag inside the package.json !
the flag are "chromium-args" : "--show-fps-counter",
package.json for windows are in
C:\Program Files (x86)\KADOKAWA\RPGMV\nwjs-win\package.json

PHP:
{
    "name": "KADOKAWA/RPGMV",
    "main": "www/index.html",
    "js-flags": "--expose-gc",
    "chromium-args" : "--show-fps-counter",
    "window": {
        "title": "",
        "toolbar": false,
        "width": 816,
        "height": 624,
        "icon": "www/icon/icon.png"
    }
}

we can access it directly like that's.
PHP:
fs = require('fs')
json = JSON.parse(fs.readFileSync('package.json', 'utf8'))
But I do not find how to indirectly modify the package.json with pure javascript.
If someone has an idea.
For now I will mark solved.:cutesmile:
 

Latest Threads

Latest Profile Posts

cst.PNG
What would you assume this thing was/is?
1623528827049.png
Ah yes. Just the reference I was looking for to use for my portrait. Thanks Google.
BCj
Made a logo for Mana Star :D
330bb1fde7bb06b13e23fefd83501163.png
it's e3 season again..!

Forum statistics

Threads
112,181
Messages
1,066,391
Members
145,770
Latest member
LordiNoop
Top