Node Webkit fullscreen

0 favourites
  • 6 posts
From the Asset Store
Node Downloader is a plugin for download file for Construct 3 and construct 2 game engine
  • Hi everyone.

    I heva a problem with Node Webkit. When I preview my game in full screen, I'm getting huge FPS drops, but when I make my window slightly smaller everything works perfect. I don't have this problem when I play in internet browsers, only when I try to play on Node Webkit. I want to publish this game on Windows, MAC and Linux, but with this frame rate in full screen, I just can not. So what can I do?

  • Try removing the windows border and doing a full-screen border-less window.

    {
    	"main": "[[[previewurl]]]",
    	"name": "[[[name]]]",
    	"window": {
    		"toolbar": false,
    		"width": [[[width]]],
    		"height": [[[height]]],
    		"position": "center",
    		"show": false
    	},
    	"node-remote": "[[[remotehost]]]",
    	"dom_storage_quota": 50,
    	"user-agent": "Mozilla/5.0 (%osinfo) AppleWebKit/%webkit_ver (KHTML, like Gecko, Chrome, Safari) NWjs/%nwver",
    	"chromium-args": "--disable-extensions --disable-plugins --disable-internal-flash --disable-popup-blocking --enable-gamepad --enable-html5-camera --allow-file-access-from-files --disable-software-rasterizer --ignore-gpu-blacklist"
    }[/code:1x4o7tbg]
    
    Replace your:
    C:\Program Files\Construct 2\exporters\html5\nwjs\package-preview.json
    
    with the above code, and you can test it without borders. Be sure to set the window X and Y to 0, and the resolution you desire.
  • Hi and thank You for quick answer.

    I don't see any difference between my original code and yours. I replaced it, but it didn't make a difference.

    Where do I set the window x and y, and resolution? In my C2 project settings, or should I write it somewhere in the code?

    If in the code I don't really know how. I never edited any codes before. Please help.

  • {
    	"main": "[[[previewurl]]]",
    	"name": "[[[name]]]",
    	"window": {
    		"toolbar": false,
    		"width": [[[width]]],
    		"height": [[[height]]],
    		"position": "center",
    		"frame": "false",
    		"show": false
    	},
    	"node-remote": "[[[remotehost]]]",
    	"dom_storage_quota": 50,
    	"user-agent": "Mozilla/5.0 (%osinfo) AppleWebKit/%webkit_ver (KHTML, like Gecko, Chrome, Safari) NWjs/%nwver",
    	"chromium-args": "--disable-extensions --disable-plugins --disable-internal-flash --disable-popup-blocking --enable-gamepad --enable-html5-camera --allow-file-access-from-files --disable-software-rasterizer --ignore-gpu-blacklist"
    }[/code:1dgv62o5]
    
    sorry try that,
    the "frame": "false", is the part you need to add is all.
    
    The X and Y are thing you set inside construct, also the window width and height should reflect your desired resolution.
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • OK I made my full-screen border-less node-webkit window, but it didn't help.

    On web browsers with border-less windows and full screen I get 60 fps, but on node-webkit with full screen normal window or border-less window around 45, and looks really choppy.

    Is there anything else I could try?

  • OK I made my full-screen border-less node-webkit window, but it didn't help.

    On web browsers with border-less windows and full screen I get 60 fps, but on node-webkit with full screen normal window or border-less window around 45, and looks really choppy.

    Is there anything else I could try?

    It may because of Vsync? i am not sure. The reason I suggested border-less window is Aero will automatically do the vsync. This is great for games because you dont get the mouselag associated with Vsync.

    People with Windows XP will not be as happy though, they need to have the fullscreen with Vsync.

    Try benchmarking most modern games on your computer with fullscreen+vsync, then benchmark with only borderless window, and NO vsync... You will probably notice a big differance in not only frame rate, but with mouse lag when you are actually playing the game.

    This is just a guess about Node web-kit. I am not sure if it automatically does V-sync with fullscreen or not.

    maybe just do a border less window for people with Windows 7+ and A fullscreen Vsync for people with windows XP?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)