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

I feel still screenshots don't do my game justice. the characters don't move, but the filter over them does...
Wonder if this year, there be more MZ plugin than MV or that MZ is still small compare to whole MV collection
Zaj
Hey morning all! I got another quick question..I just switched to RMMZ from VX Ace..so I am wondering why default scripts(is that how u call it) of VXAce is available, but not in MZ's case? How do I figure out ahh I mean could you show me
Sometimes im the biggest fool alive... Ah well, ce la vie
The worst feeling in the world is going for a walk on a nice summer day, seeing an ice cream truck, and realizing you don't have any money with you :(

Forum statistics

Threads
111,346
Messages
1,060,356
Members
144,671
Latest member
vert1go
Top