Auto Start FPS Meter ? [SOLVED]

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,623
Reaction score
1,439
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,623
Reaction score
1,439
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:
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,847
Messages
1,016,972
Members
137,561
Latest member
JaCrispy85
Top