0 Favourites

Unused plugins on a exported project

  • Hi Ashley

    I am currently working on a template project, building those annoying parts of making a game (sound events, alert dialogs, menus...) one-time only, so I can focus on the fun part later! <img src="smileys/smiley4.gif" border="0" align="middle" />

    I noticed that, when exporting a project, a plugin (i.e. Keyboard) without any mentions in the event sheet will still be present in the exported c2runtime.js

    I'm wondering about the disadvantages of having them there. Will it slow down the game in a noticeable way? Would it be useful if we had an automatic way of removing those objects?

    This is currently not a problem for me because I'll be removing any stuff I won't need from my projects at the start. However, if I wanted to make a cross-platform game, I would love to simply comment the Keyboard or Touch conditions in the Event Sheet and not have their respective plugins in the exported version.

    Thanks in advance!

  • There is not much advantage to removing them. For example the Keyboard object will not have any performance impact on a touch device, and the Touch object will not have any performance impact on a desktop computer. It will add about 10kb to the exported javascript, but that's not a big deal.

    I do not think unused plugins should be automatically removed, because it's conceivable a third party plugin could do something useful after simply being added to a project. In this case if C2 automatically removed the plugin it would stop the plugin from doing its work as well. So if you want to remove a plugin from your project, just make sure it's deleted from the project bar.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Great, if there's no impact in the performance, there's really no need to remove them. Thanks Ashley!

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