Turning off V-Sync on Node-Webkit

0 favourites
  • 3 posts
From the Asset Store
Node Downloader is a plugin for download file for Construct 3 and construct 2 game engine
  • So, I was trying to maintain a solid 60fps on Chrome with quite a lot onscreen, multiple enemies with their own platform behaviour with multiple effects and multiple everything everywhere, I kept looking through my code multiple times to try and speed things up, deactivating stuff when they aren't doing anything and whatnot, but I seem to keep getting 30-40fps.

    However, I randomly tried exporting the game as an .EXE file, and woah, a solid 60fps, even with more enemies than I tried before! <img src="smileys/smiley4.gif" border="0" align="middle" />

    Whilst using Chrome, I deactivate V-Sync so that I can see how fast the game is updating, and seeing as Node-Webkit provides faster speeds, I'd love to be able to see the fps without V-Sync. Is there a way to do this via hacking or anything?

  • I'm not sure, but If you can you'd have to wrap it in node webkit manually.

    github.com/rogerwang/node-webkit/wiki/How-to-package-and-distribute-your-apps

    It would probably have to be done in the manifest file.

    github.com/rogerwang/node-webkit/wiki/Manifest-format

    "chromium-args

    since v0.4.0

    (string) Specify chromium (content shell) command line arguments. It will be useful if you want to distribute the app with some custom chromium args. For example, if you want to disable the GPU accelerated video display, just add "chromium-args" : "--disable-accelerated-video". If you want to add multiple arguments, separate each two arguments by space. This field can take a number of flags in one argument as well, via enclosing them in single quotation marks.

    A list of Chromium's command line arguments is available at http://src.chromium.org/svn/trunk/src/content/public/common/content_switches.cc"

    I haven't read them all, but it might be in the list of command line arguments there.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This seems really useful, I will mess around with this and see what I come up with. Thanks :D

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